goflags

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Prefix string

Prefix is a string that would be placed at the beginning of the generated tags.

View Source
var Preserve bool

Preserve disable default values and get only visited parameters thus preserving the values passed in the structure, default false

View Source
var Usage func()

Usage is a function to show the help, can be replaced by your own version.

Functions

func DefaultUsage

func DefaultUsage()

DefaultUsage is assigned for Usage function by default

func Parse

func Parse(config interface{}) (err error)

Parse configuration

func PrintDefaults

func PrintDefaults()

PrintDefaults print the default help

func Reset

func Reset()

Reset maps caling setup function

func SetTag

func SetTag(tag string)

SetTag set a new tag

func SetTagDefault

func SetTagDefault(tag string)

SetTagDefault set a new TagDefault to retorn default values

func Setup

func Setup(tag string, tagDefault string)

Setup maps and variables

Types

This section is empty.

Jump to

Keyboard shortcuts

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