This repository has been archived on 2022-08-17. You can view files and clone it, but cannot push or open issues or pull requests.
dex/cmd/dexctl/util.go

22 lines
371 B
Go
Raw Normal View History

2015-08-18 05:57:27 +05:30
package main
import (
"fmt"
"os"
"strings"
)
func stderr(format string, args ...interface{}) {
if !strings.HasSuffix(format, "\n") {
format = format + "\n"
}
fmt.Fprintf(os.Stderr, format, args...)
}
func stdout(format string, args ...interface{}) {
if !strings.HasSuffix(format, "\n") {
format = format + "\n"
}
fmt.Fprintf(os.Stdout, format, args...)
}