commento/api/utils_misc.go
Adhityaa a090770b73 api: Add go files
I know this is a huge commit, but I can't be bothered to check
this in part by part.
2018-05-27 23:40:46 +05:30

17 lines
202 B
Go

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