Released on 2020/01/17
Breaking change
- Removed
errors.DirectCause
New feature
- Added
errors.Unwrap
anderrors.As
to align with go 1.13 #109
Released on 2019/05/04
New feature
Released on 2019/04/28
Breaking change
- #112 Legacy package moved to its own repo gommon-legacy
- #110 Simplify log registry, no longer have tree
- #97 Contains a global registry
New feature
- #60 Use env var
GOMMON_LOG_LEVEL
to set default log level
Removed package
- #113 structure package is moved to legacy
Breaking change
- #74 Switched to go mod from dep
New feature
- #76 created
errors/errortype
package for inspecting standard library error types, and add three common error interfacesErrNotFound
,ErrAlreadyExists
,ErrNotImplemented
Fixed
- #108 log package was using
init
to induct package level logger, it is changed toinit.ializers
New feature
- #66 error inspection without checking string, based on go 2 proposal
- #105
gommon add-build-ignore
used for disable all the legacy packages
Partial
- #74 created
go.mod
so gommon be used by thereplace
directive in other go mod based projects, gommon itself is still using dep - #103 style guide, only covered general and is not well formatted
Removed package
Breaking change in factory functions
- reduce handler interface from 6 methods to 1
- #88 add benchmark
- #33 #78 use log registry to keep tree of logger
- application logger is now application log registry
- library logger is now library log registry
- escape string in json handler
- #87 add multi handler for fan out
- deprecated config v1, move it to legacy folder
- move cast into util
- improve doc, fix typo
- remove usage of
pkg/errors
, usegommon/errors
instead- support multiple errors (includes a thread safe version using mutex)
errors.Wrap
only add stack if previous error does not have one
- add
noodle
package for embed static assets to binary - allow ignore file and directories using
.noodleignore
- add json and cli handler for
gommon/log
- source line using
runtime
- add
color
package to util
- add generator package and
gommon
cli- support generate methods for implementing
log.LoggableStruct
interface - use std
flag
package instead of cobra (for now)
- support generate methods for implementing