a090770b73
I know this is a huge commit, but I can't be bothered to check this in part by part.
17 lines
202 B
Go
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)
|
|
}
|
|
}
|