shad-go/lectures/09-io/discard/main.go

12 lines
141 B
Go
Raw Normal View History

2020-04-23 01:40:13 +00:00
package main
import (
"io"
"io/ioutil"
"strings"
)
func main() {
_, _ = io.Copy(ioutil.Discard, strings.NewReader("nothing of use"))
}