options

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 2 Imported by: 0

README

Package log implements a support for the command-line options

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOption

func GetOption(name string) interface{}

GetOption -- get option from command line

func LoadOptions

func LoadOptions(list map[string]OptionDef)

LoadOptions -- load options from command line

Types

type OptionDef

type OptionDef struct {
	Name     string
	Comment  string
	Tp       types.BasicKind
	DefValue interface{}
}

OptionDef -- command line option definition

Jump to

Keyboard shortcuts

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