Documentation
¶
Overview ¶
Package debug is a library to display debug info that control by enviroment variable DEBUG
Example ¶
package main // import the package import "github.com/alibabacloud-go/debug/debug" // init a debug method var d = debug.Init("sdk") func main() { // try `go run demo.go` // and `DEBUG=sdk go run demo.go` d("this debug information just print when DEBUG environment variable was set") }
When you run application with `DEBUG=sdk go run main.go`, it will display logs. Otherwise it do nothing
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.