18 lines
225 B
Go
18 lines
225 B
Go
|
package main
|
||
|
|
||
|
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...)
|
||
|
}
|