Documentation ¶
Index ¶
Constants ¶
View Source
const Binary = "hello-world"
Binary is the app name.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Worlds int `json:"worlds" xml:"worlds" toml:"worlds" yaml:"worlds"` Hellos int `json:"hellos" xml:"hellos" toml:"hellos" yaml:"hellos"` }
Config defines our applications's config file parameters.
type HelloWorld ¶
HelloWorld is the main application struct.
func (*HelloWorld) GetConfig ¶
func (u *HelloWorld) GetConfig() error
GetConfig parses and returns our configuration data. Supports any format for config file: xml, yaml, json, toml.
func (*HelloWorld) ParseFlags ¶
func (u *HelloWorld) ParseFlags(args []string)
ParseFlags runs the parser for CLI arguments.
Click to show internal directories.
Click to hide internal directories.