commento/api/utils_misc.go

17 lines
202 B
Go
Raw Normal View History

package main
import (
"bytes"
"os"
)
func concat(a bytes.Buffer, b bytes.Buffer) []byte {
return append(a.Bytes(), b.Bytes()...)
}
func exitIfError(err error) {
if err != nil {
os.Exit(1)
}
}