the golang development toolkits.
- package start with
gox
, others same with the go sdk - using the
x
suffix, means extension, likelistx
,stringx
test
in the same place
- package start with feature name, like
http
import "github.com/acmestack/godkits/log/log"
func TestLog(t *testing.T) {
log.Info("test")
}
// TestLog test log
// @params t tests params
func TestLog(t *testing.T) {
log.Info("test")
}
// NewAsyncWriter Write data with Buffer, this Writer and Closer is thread safety, but WriteCloser parameters not safety.
// @param w Writer
// @param bufSize accept buffer max length
// @param block if true, overflow buffer size, will blocking, if false will occur error
// @return *AsyncLogWriter
func NewAsyncWriter(w io.Writer, bufSize int, block bool) *AsyncLogWriter {
}