1
mirror of https://gitlab.com/commento/commento.git synced 2025-06-28 22:55:39 -04:00
Files
commento/api/utils_misc.go
2019-10-25 01:10:44 -07:00

19 lines
248 B
Go

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