diff options
Diffstat (limited to 'vendor/github.com/spkg/bom/discard_go15.go')
-rw-r--r-- | vendor/github.com/spkg/bom/discard_go15.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/github.com/spkg/bom/discard_go15.go b/vendor/github.com/spkg/bom/discard_go15.go new file mode 100644 index 000000000..2d17d5c5e --- /dev/null +++ b/vendor/github.com/spkg/bom/discard_go15.go @@ -0,0 +1,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) +} |