go fmt and line nr tweak

This commit is contained in:
Miek Gieben 2012-02-21 22:43:24 +01:00
parent f9d3068eb9
commit bad984954b
1 changed files with 14 additions and 12 deletions

View File

@ -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
}