Documentation
¶
Overview ¶
Package stdlog provides a go/analysis analyzer enforcing the gomatic Go logging standard: the standard library "log" package is forbidden in favor of structured logging with "log/slog".
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{
Name: "stdlog",
Doc: "reports imports of the standard log package, which the gomatic standard replaces with log/slog",
Run: run,
}
Analyzer reports imports of the standard "log" package.
View Source
var Registration = goyze.Registration{ Name: "stdlog", Categories: []goyze.Category{"data"}, URL: "https://docs.gomatic.dev/yze/stdlog", Analyzer: Analyzer, }
Registration declares this analyzer to the yze framework.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
yze-go-stdlog
command
Command yze-go-stdlog runs the stdlog analyzer as a standalone go/analysis checker (text and -json output, and as a `go vet -vettool`).
|
Command yze-go-stdlog runs the stdlog analyzer as a standalone go/analysis checker (text and -json output, and as a `go vet -vettool`). |
Click to show internal directories.
Click to hide internal directories.