package badtudexo import ( st "saggytrousers" "errors" ) // Take two sheets, and concatenate them. // Note: this done wrong at the moment, it should take [][]string not []string. func Concat(fst, snd []string) []string { return append(append([]string{}, fst...), snd...) } func ConcatCheckHeaders(fst, snd, fsthd, sndhd []string) ([]string, error) { if !st.SliceEq(fsthd, sndhd) { return []string{}, errors.New("Header mismatch") } return Concat(fst, snd), nil }