Vendor godep v79 and use it
This commit is contained in:
55
vendor/github.com/tools/godep/msg.go
generated
vendored
Normal file
55
vendor/github.com/tools/godep/msg.go
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
|
||||
"github.com/kr/pretty"
|
||||
)
|
||||
|
||||
func debugln(a ...interface{}) (int, error) {
|
||||
if debug {
|
||||
return fmt.Println(a...)
|
||||
}
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
func verboseln(a ...interface{}) {
|
||||
if verbose {
|
||||
log.Println(a...)
|
||||
}
|
||||
}
|
||||
|
||||
func debugf(format string, a ...interface{}) (int, error) {
|
||||
if debug {
|
||||
return fmt.Printf(format, a...)
|
||||
}
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
func verbosef(format string, a ...interface{}) {
|
||||
if verbose {
|
||||
log.Printf(format, a...)
|
||||
}
|
||||
}
|
||||
|
||||
func pp(a ...interface{}) (int, error) {
|
||||
if debug {
|
||||
return pretty.Print(a...)
|
||||
}
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
func ppln(a ...interface{}) (int, error) {
|
||||
if debug {
|
||||
return pretty.Println(a...)
|
||||
}
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
func ppf(format string, a ...interface{}) (int, error) {
|
||||
if debug {
|
||||
return pretty.Printf(format, a...)
|
||||
}
|
||||
return 0, nil
|
||||
}
|
Reference in New Issue
Block a user