lazydocker/vendor/github.com/spkg/bom/discard_go14.go
2019-05-12 10:32:02 +10:00

12 lines
210 B
Go

// +build !go1.5
package bom
import "bufio"
func discardBytes(buf *bufio.Reader, n int) {
// cannot use the buf.Discard method as it was introduced in Go 1.5
for i := 0; i < n; i++ {
buf.ReadByte()
}
}