github.com/wgh-/mattermost-server@v4.8.0-rc2+incompatible/cmd/platform/output.go (about) 1 // Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved. 2 // See License.txt for license information. 3 package main 4 5 import ( 6 "fmt" 7 "os" 8 ) 9 10 func CommandPrintln(a ...interface{}) (int, error) { 11 return fmt.Println(a...) 12 } 13 14 func CommandPrintErrorln(a ...interface{}) (int, error) { 15 return fmt.Fprintln(os.Stderr, a...) 16 } 17 18 func CommandPrettyPrintln(a ...interface{}) (int, error) { 19 return fmt.Fprintln(os.Stderr, a...) 20 }