-
-
Save kinshuk4/fa966e57c9f43e1d806b09382c3fe2bf 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