Create a symbol link file named protoc-gen-goctl from goctl (#1076)
This commit is contained in:
@@ -23,7 +23,9 @@ type (
|
||||
MarkDone()
|
||||
Must(err error)
|
||||
}
|
||||
|
||||
colorConsole struct{}
|
||||
|
||||
// for idea log
|
||||
ideaConsole struct{}
|
||||
)
|
||||
@@ -140,3 +142,37 @@ func println(msg interface{}) {
|
||||
|
||||
fmt.Println(msg)
|
||||
}
|
||||
|
||||
var defaultConsole = new(colorConsole)
|
||||
|
||||
func Success(format string, a ...interface{}) {
|
||||
defaultConsole.Success(format, a...)
|
||||
}
|
||||
|
||||
func Info(format string, a ...interface{}) {
|
||||
defaultConsole.Info(format, a...)
|
||||
}
|
||||
|
||||
func Debug(format string, a ...interface{}) {
|
||||
defaultConsole.Debug(format, a...)
|
||||
}
|
||||
|
||||
func Warning(format string, a ...interface{}) {
|
||||
defaultConsole.Warning(format, a...)
|
||||
}
|
||||
|
||||
func Error(format string, a ...interface{}) {
|
||||
defaultConsole.Error(format, a...)
|
||||
}
|
||||
|
||||
func Fatalln(format string, a ...interface{}) {
|
||||
defaultConsole.Fatalln(format, a...)
|
||||
}
|
||||
|
||||
func MarkDone() {
|
||||
defaultConsole.MarkDone()
|
||||
}
|
||||
|
||||
func Must(err error) {
|
||||
defaultConsole.Must(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user