1
mirror of https://gitlab.com/commento/commento.git synced 2025-04-28 18:40:29 -04:00
commento/api/utils_misc.go
2018-06-22 19:50:20 +05:30

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)
}
}