Skip to content

Instantly share code, notes, and snippets.

@islishude
Created March 2, 2019 01:41
Show Gist options
  • Save islishude/dea1b54602579fbb84a05fd9c7fbd1b1 to your computer and use it in GitHub Desktop.
Save islishude/dea1b54602579fbb84a05fd9c7fbd1b1 to your computer and use it in GitHub Desktop.
package main
import (
"bytes"
)
func main() {
}
func t1(x, y []byte) []byte {
z := append(x, y...)
return z
}
func t2(x, y []byte) []byte {
var data bytes.Buffer
data.Write(x)
data.Write(y)
return data.Bytes()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment