MCPcopy
hub / github.com/gobyexample-cn/gobyexample / debug

Function debug

tools/generate.go:92–96  ·  view source on GitHub ↗
(msg string)

Source from the content-addressed store, hash-verified

90}
91
92func debug(msg string) {
93 if os.Getenv("DEBUG") == "1" {
94 fmt.Fprintln(os.Stderr, msg)
95 }
96}
97
98var docsPat = regexp.MustCompile(`^(\s*(\/\/|#)\s|\s*\/\/$)`)
99var dashPat = regexp.MustCompile(`\-+`)

Callers 1

parseSegsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected