MCPcopy
hub / github.com/dnote/dnote / isDebug

Function isDebug

pkg/cli/log/log.go:111–113  ·  view source on GitHub ↗

isDebug returns true if debug mode is enabled

()

Source from the content-addressed store, hash-verified

109
110// isDebug returns true if debug mode is enabled
111func isDebug() bool {
112 return os.Getenv(debugEnvName) == debugEnvValue
113}
114
115// Debug prints to the console if DNOTE_DEBUG is set
116func Debug(msg string, v ...interface{}) {

Callers 2

DebugFunction · 0.85
DebugNewlineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected