apigen/lib/util.go

20 lines
229 B
Go
Raw Permalink Normal View History

2021-09-06 12:54:09 +00:00
package lib
2021-01-30 09:53:34 +00:00
import (
"log"
)
func Err(e error) {
if e != nil {
panic(e)
}
}
func Debug(s string, p ...interface{}) {
log.Printf("DEBUG: "+s, p...)
}
func Log(s string, p ...interface{}) {
log.Printf("LOG: "+s, p...)
}