Last active
March 29, 2018 02:19
-
-
Save maddyonline/e6a8bf47939bbf4e7c0d to your computer and use it in GitHub Desktop.
Golang
This file contains 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 "io" | |
import "os" | |
import "strings" | |
import "bytes" | |
func main() { | |
r1 := strings.NewReader("Hello") | |
r2 := bytes.NewReader([]byte(" World!")) | |
io.Copy(os.Stdout, r1) | |
io.Copy(os.Stdout, r2) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.carlyzach.com/functions/playground/e6a8bf47939bbf4e7c0d