apigen/lib/util.go

20 lines
229 B
Go

package lib
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...)
}