File: discard_go15.go

package info (click to toggle)
golang-github-spkg-bom 0.0~git20160624.59b7046-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 76 kB
  • sloc: makefile: 2
file content (10 lines) | stat: -rw-r--r-- 158 bytes parent folder | download
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)
}