godkits

module
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2022 License: Apache-2.0

README

godkits

license card go version go report codecov report workflow Go Reference build docs lasted release

the golang development toolkits.

Naming

Go SDK Extensions
  • package start with gox, others same with the go sdk
  • using the x suffix, means extension, like listx, stringx
  • test in the same place
Other Extensions
  • package start with feature name, like http

Usage


import "github.com/acmestack/godkits/log/log"

func TestLog(t *testing.T) {
	log.Info("test")
}

Code Comment

Code comment with method
// 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 {
}

Stargazers over time

Stargazers over time

Contribute and Support

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL