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