Explorar o código

Add a sentence to the documentation that flag.Parse must be called first.

Rob Pike %!s(int64=12) %!d(string=hai) anos
pai
achega
d1c4472bf2
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      glog.go

+ 1 - 0
glog.go

@@ -37,6 +37,7 @@
 //
 // By default, all log statements write to files in a temporary directory.
 // This package provides several flags that modify this behavior.
+// As a result, flag.Parse must be called before any logging is done.
 //
 //	-logtostderr=false
 //		Logs are written to standard error instead of to files.