12 lines
130 B
Go
12 lines
130 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
)
|
|
|
|
func failOnError(err error, msg string) {
|
|
if err != nil {
|
|
log.Fatalf("%s: %s", msg, err)
|
|
}
|
|
}
|