You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const (
// Bits or'ed together to control what's printed.// There is no control over the order they appear (the order listed// here) or the format they present (as described in the comments).// The prefix is followed by a colon only when Llongfile or Lshortfile// is specified.// For example, flags Ldate | Ltime (or LstdFlags) produce,// 2009/01/23 01:23:23 message// while flags Ldate | Ltime | Lmicroseconds | Llongfile produce,// 2009/01/23 01:23:23.123123 /a/b/c/d.go:23: messageLdate=1<<iota// the date in the local time zone: 2009/01/23Ltime// the time in the local time zone: 01:23:23Lmicroseconds// microsecond resolution: 01:23:23.123123. assumes Ltime.Llongfile// full file name and line number: /a/b/c/d.go:23Lshortfile// final file name element and line number: d.go:23. overrides LlongfileLUTC// if Ldate or Ltime is set, use UTC rather than the local time zoneLstdFlags=Ldate|Ltime// initial values for the standard logger
)
This means when you parse the AST for log, the doc is on Ldate and no other constant, nor on the general declaration/block that they're all in.
Should be:
// Bits or'ed together to control what's printed.// There is no control over the order they appear (the order listed// here) or the format they present (as described in the comments).// The prefix is followed by a colon only when Llongfile or Lshortfile// is specified.// For example, flags Ldate | Ltime (or LstdFlags) produce,// 2009/01/23 01:23:23 message// while flags Ldate | Ltime | Lmicroseconds | Llongfile produce,// 2009/01/23 01:23:23.123123 /a/b/c/d.go:23: messageconst (
Ldate=1<<iota// the date in the local time zone: 2009/01/23Ltime// the time in the local time zone: 01:23:23Lmicroseconds// microsecond resolution: 01:23:23.123123. assumes Ltime.Llongfile// full file name and line number: /a/b/c/d.go:23Lshortfile// final file name element and line number: d.go:23. overrides LlongfileLUTC// if Ldate or Ltime is set, use UTC rather than the local time zoneLstdFlags=Ldate|Ltime// initial values for the standard logger
)
The text was updated successfully, but these errors were encountered:
We promise compatibility for source code that imports the log package. We don't promise that the log package will never change in any way detectable by using the go/parse package.
Currently:
This means when you parse the AST for log, the doc is on Ldate and no other constant, nor on the general declaration/block that they're all in.
Should be:
The text was updated successfully, but these errors were encountered: