Versions in this module Expand all Collapse all v0 v0.9.1 Apr 30, 2019 v0.9.0 Apr 29, 2019 Changes in this version + const APPDESC + const APPNAME + const APPVERSION + const CONF + const COPY + const CREATE + const CTL + const DATADIR + const FLOAT + const HELP + const INTEGER + const LIST + const LOG + const NEW + const NODE + const RE_CONF + const RE_COPY + const RE_CREATE + const RE_CTL + const RE_DATADIR + const RE_FLOAT + const RE_HELP + const RE_INTEGER + const RE_LIST + const RE_LOG + const RE_NEW + const RE_NODE + const RE_SHELL + const RE_TEST + const RE_WALLET + const RE_WORD + const SHELL + const TEST + const WALLET + const WORD + var Config = MakeConfig(config) + var ConfigFile string + var DataDir string + var Networks = []string + func CleanAndExpandPath(path string) string + func Conf(args []string, tokens Tokens, cmds, all Commands) int + func Copy(args []string, tokens Tokens, cmds, all Commands) int + func Create(args []string, tokens Tokens, cmds, all Commands) int + func Ctl(args []string, tokens Tokens, cmds, all Commands) int + func EnsureDir(fileName string) bool + func FileExists(filePath string) bool + func Help(args []string, tokens Tokens, cmds, all Commands) int + func List(args []string, tokens Tokens, cmds, all Commands) int + func MakeConfig(c *Lines) (out *nine.Config) + func New(args []string, tokens Tokens, cmds, all Commands) int + func Node(args []string, tokens Tokens, cmds, all Commands) int + func NormalizeAddress(addr, defaultPort string) string + func NormalizeAddresses(addrs []string, defaultPort string) []string + func Parse(args []string) int + func RemoveDuplicateAddresses(addrs []string) []string + func Shell(args []string, tokens Tokens, cmds, all Commands) int + func Start(args []string) int + func Test(args []string, tokens Tokens, cmds, all Commands) int + func ValidName(s string) bool + func Wallet(args []string, tokens Tokens, cmds, all Commands) int + type Command struct + Detail string + Handler func(args []string, tokens Tokens, cmds, all Commands) int + Optional opts + Precedent precedent + RE *regexp.Regexp + Usage string + type Commands map[string]Command + type Line struct + Comment string + Initial interface{} + Name string + Validate func(*Line, interface{}) bool + Value interface{} + func Addr(s string) *Line + func Addrs(s string) *Line + func Algo(s string) *Line + func Dir(s string) *Line + func Duration(s string) *Line + func Enable(s string) *Line + func Enabled(s string) (o *Line) + func File(s string) *Line + func Float(s string) *Line + func Int(s string) *Line + func Log(s string) *Line + func Net(s string) (o *Line) + func Port(s string) *Line + func Tag(s string) *Line + func Tags(s string) *Line + func (l *Line) BOOL(v ...bool) *bool + func (l *Line) Default(d interface{}) (out *Line) + func (l *Line) FLOAT(v ...float64) *float64 + func (l *Line) INT(v ...int) *int + func (l *Line) Label(name string) *Line + func (l *Line) MAP(v ...nine.Mapstringstring) *nine.Mapstringstring + func (l *Line) Max(i int) *Line + func (l *Line) Min(i int) *Line + func (l *Line) SLICE(v ...[]string) *[]string + func (l *Line) STRING(v ...string) *string + func (l *Line) Usage(s string) *Line + type Lines map[string]*Line + func NewConfig() *Lines + func (l *Lines) Group(s string, items ...*Line) (out *Lines) + func (l Lines) String() (out string) + type Stringslice []string + func (s Stringslice) String() (out string) + type Token struct + Cmd Command + Value string + type Tokens map[string]Token