Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadEmbeddedStubs ¶ added in v0.2.0
func Main ¶
func Main(cfg *MainConfig)
Main is the actual main function to be run. It is separate from linter so that you can insert your own hooks before running main().
Optionally, non-nil config can be passed to customize function behavior.
Types ¶
type MainConfig ¶
type MainConfig struct { // AfterFlagParse is called right after flag.Parse() returned. // Can be used to examine flags that were bound prior to the Main() call. // // If nil, behaves as a no-op function. AfterFlagParse func() }
MainConfig describes optional main function config. All zero field values have some defined behavior.
Click to show internal directories.
Click to hide internal directories.