aboutsummaryrefslogtreecommitdiff
path: root/units.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-05-11 20:11:17 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-05-11 20:11:17 +0200
commit005049731e688de56aa50bfbb1ab68bda947fac0 (patch)
tree5e6e27792ddfdd43b1eb8eea25b7684da3dd5664 /units.go
parent5be90d74b864a6485936f380509f3ee42c1363ab (diff)
Hide scan*
Diffstat (limited to 'units.go')
-rw-r--r--units.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/units.go b/units.go
index 5a8c88f..e5fb865 100644
--- a/units.go
+++ b/units.go
@@ -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
}