Created
March 2, 2019 01:41
-
-
Save islishude/dea1b54602579fbb84a05fd9c7fbd1b1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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