func init() { for k, v := range flipTable { flipTable[v] = k } bort.RegisterSetup(setup) bort.RegisterCommand("flip", "flip text (or tables by default)", Flip) }
func init() { cmdList := []string{"help"} for cmd := range cmdMap { cmdList = append(cmdList, cmd) } sort.Strings(cmdList) helpStr = strings.Join(cmdList, " ") bort.RegisterCommand("calc", "RPN calculator", Calc) }
func init() { bort.RegisterCommand("forecast", "asciitastic 2 day NWS forecast for a given location", Forecast) }