Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is the current version of the program Version string // CommitHash is the current commit hash of the program CommitHash string // BuildTime is the current build time of the program BuildTime string )
Functions ¶
This section is empty.
Types ¶
type Compressor ¶
type Decompressor ¶
type IPRange ¶
type IPRange struct {
// contains filtered or unexported fields
}
func NewIPRange ¶
func (*IPRange) Unserialize ¶
type Options ¶
type Options struct { InputFile string `short:"i" long:"input-file" description:"The input file" required:"true" default:"-"` OutputFile string `short:"o" long:"output-file" description:"The output file" required:"true" default:"-"` Version bool `short:"v" long:"version" description:"Version"` }
var Opts Options
type ProgramVersion ¶
type ProgramVersion struct { Version string `json:"version"` CommitHash string `json:"commit_hash"` BuildTime string `json:"build_time"` }
ProgramVersion is the version object of the program
var PV ProgramVersion
func (ProgramVersion) Short ¶
func (v ProgramVersion) Short() string
Short returns the short version of the program
func (ProgramVersion) String ¶
func (v ProgramVersion) String() string
String returns the verbose version of the program
Click to show internal directories.
Click to hide internal directories.