go fmt and line nr tweak
This commit is contained in:
parent
f9d3068eb9
commit
bad984954b
|
@ -1,4 +1,5 @@
|
||||||
package dns
|
package dns
|
||||||
|
|
||||||
// Implement a simple scanner, return a byte stream from an io reader.
|
// Implement a simple scanner, return a byte stream from an io reader.
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -15,6 +16,7 @@ type scan struct {
|
||||||
func scanInit(r io.Reader) *scan {
|
func scanInit(r io.Reader) *scan {
|
||||||
s := new(scan)
|
s := new(scan)
|
||||||
s.src = bufio.NewReader(r)
|
s.src = bufio.NewReader(r)
|
||||||
|
s.position.Line = 1
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue