github.com/masterhung0112/hk_server/v5@v5.0.0-20220302090640-ec71aef15e1c/cmd/hkserver/commands/output.go (about) 1 // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. 2 // See LICENSE.txt for license information. 3 4 package commands 5 6 import ( 7 "fmt" 8 "os" 9 ) 10 11 func CommandPrintln(a ...interface{}) (int, error) { 12 return fmt.Println(a...) 13 } 14 15 func CommandPrintErrorln(a ...interface{}) (int, error) { 16 return fmt.Fprintln(os.Stderr, a...) 17 } 18 19 func CommandPrettyPrintln(a ...interface{}) (int, error) { 20 return fmt.Fprintln(os.Stdout, a...) 21 }