go-common/app/admin/main/member/model/bom/discard_go14.go

13 lines
210 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
// +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()
}
}