Release v2.1.0 - new features and bugfix
Features:
- Feat: add support for Go 1.20
- Feat: update dependencies to latest
- Feat: update CI workflow to test under all linux/mac/windows platforms
- Feat: new api
easy.Glob
supporting double-star pattern - Feat: new api
easy.LazyJSON
helps to avoid unnecessary marshaling in some use case - Feat: new api
fastrand.Fastrand64
,fastrand.ExpFloat64
,fastrand.NormFloat64
andfastrand.NewZipf
- Feat: new api
zlog.Println
,zlog.TRACE1
andzlog.TRACESkip1
- Feat: zlog support per logger output files
- Feat: optimize spinlock implementation
- Feat: make
errcode.Code
being compatible witherrors.Is
Bugfix:
- Fix: test failures and bugs
- Fix: some issues reported by
golangci-lint
Minor incompatible changes:
- Change return value of
monkey.Mock
to be exported typeMocker
- Remove deprecated type
json.InvalidUTF8Error
,json.UnmarshalFieldError
,
which are deprecated since Go 1.2 - Remove api
monkey.Patch.Origin
, which does not work correctly