doc for methods

This commit is contained in:
alessio 2016-08-21 20:21:02 +02:00
parent de8042b73b
commit f8e1d23f2f
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,7 @@ type App struct {
Name, Version, Description, Author, Email string
}
// Custom log timestamp
func init() {
log.SetFlags(0)
log.SetOutput(new(logWriter))
@ -61,6 +62,7 @@ func (app *App) Information() {
fmt.Println(BlueS(app.Description) + "\n")
}
// Cewrites the log timestamp
func (writer logWriter) Write(bytes []byte) (int, error) {
return fmt.Print(YellowS("[") + time.Now().UTC().Format("15:04:05") + YellowS("]") + string(bytes))
}