cmd

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2020 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadEmbeddedStubs added in v0.2.0

func LoadEmbeddedStubs(filenames []string) error

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.

Directories

Path Synopsis
Package stubs Code generated by go-bindata.
Package stubs Code generated by go-bindata.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL