Documentation
¶
Overview ¶
Package flags provides CLI flag handling utilities including benchmark timing.
Index ¶
Constants ¶
View Source
const BenchmarkFlagName = "benchmark"
BenchmarkFlagName is the global/root persistent flag that enables benchmark output.
Variables ¶
This section is empty.
Functions ¶
func IsBenchmarkEnabled ¶ added in v5.30.0
IsBenchmarkEnabled reports whether the current command invocation has benchmark enabled.
The flag is defined as a root persistent flag and inherited by subcommands.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.