diff options
author | Dimitri Sokolyuk <demon@dim13.org> | 2015-05-11 20:11:17 +0200 |
---|---|---|
committer | Dimitri Sokolyuk <demon@dim13.org> | 2015-05-11 20:11:17 +0200 |
commit | 005049731e688de56aa50bfbb1ab68bda947fac0 (patch) | |
tree | 5e6e27792ddfdd43b1eb8eea25b7684da3dd5664 /units.go | |
parent | 5be90d74b864a6485936f380509f3ee42c1363ab (diff) |
Hide scan*
Diffstat (limited to 'units.go')
-rw-r--r-- | units.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -17,7 +17,7 @@ func (u Unit) String() string { return fmt.Sprintf("%.2f", u) } -func ScanUnit(s string) (u Unit) { +func scanUnit(s string) (u Unit) { fmt.Sscanf(s, "%v", &u) return } @@ -30,7 +30,7 @@ func (p Point) String() string { return fmt.Sprintf("%v,%v", p.X, p.Y) } -func ScanPoint(s string) (p Point) { +func scanPoint(s string) (p Point) { fmt.Sscanf(s, "%v,%v", &p.X, &p.Y) return } @@ -43,7 +43,7 @@ func (t Triple) String() string { return fmt.Sprintf("%v,%v,%v", t.U, t.V, t.W) } -func ScanTriple(s string) (t Triple) { +func scanTriple(s string) (t Triple) { fmt.Sscanf(s, "%v,%v,%v", &t.U, &t.V, &t.W) return } |