19 lines
190 B
Go
19 lines
190 B
Go
package svalue
|
|
|
|
import "log"
|
|
|
|
func must(err error) {
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|
|
|
|
func mustlog(err error) bool {
|
|
if err != nil {
|
|
log.Fatalln(err)
|
|
return false
|
|
}
|
|
|
|
return true
|
|
}
|