1 2 3 4 5 6 7 8 9 10
// +build go1.5 package bom import "bufio" func discardBytes(buf *bufio.Reader, n int) { // the Discard method was introduced in Go 1.5 buf.Discard(n) }