Преглед на файлове

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

Rob Pike преди 12 години
родител
ревизия
d1c4472bf2
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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.