proxy.golang.org : github.com/inkel/slogflag : v0.0.1
Package slogflag implements command-line flag parsing for slog.Level variables. Define flags using slogflag.Level. This declares a slog.Level flag, -log-level, stored in the pointer level, with type *slog.Level: If you like, you can bind the flag to a variable using the slogflag.LevelVar function: After all the flags are defined, call flag.Parse as usual. Then you can set the log level of your slog.Logger like this:
Registry -
Documentation -
Download -
JSON -
codemeta.json
purl: pkg:golang/github.com/inkel/slogflag@v0.0.1
Published:
Indexed: