Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Hostname string
View Source
var RootCmd = &cobra.Command{ Use: "chitty", Short: "The Chitty-Chat chat client!", Args: cobra.MinimumNArgs(1), PersistentPreRunE: func(cmd *cobra.Command, args []string) error { f, err := os.OpenFile("logs/app.log", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666) if err != nil { return err } defer f.Close() log.SetFlags(0) log.SetOutput(f) return nil }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.