Those utils come from my actual production, they are all simple, shot but usefully. Each util was built in a separate module and follow with unit test (example), pursue of simple and convenience.
go get github.com/zhengxiaoyao0716/util/<package you want>
// Note that the project path `util` is only a directory,
// you should choose a package in child path to import.
See godoc
See unit test in packages.
- 2017/08/02: The interface of
Event
module has a bit change. theKey
has change fromstruct{Type, Name}
to[2]string{Type, Name}
.