package
Version:
v0.0.0-...-5c18856
Opens a new window with list of versions in this module.
Published: Oct 20, 2025
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var Module = fx.Module("logfx",
flagfx.Provide(
func(fs *flag.FlagSet) *flags {
var f flags
fs.StringVar(&f.Level, "log-level", "info", "log level (e.g., debug, info, warn)")
return &f
},
),
fx.Provide(
func(f *flags) LogLevel {
return LogLevel(strings.ToLower(f.Level))
},
),
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.