From 413560591fc2d89a73eb8a33ba28b0cc3407b1db Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 26 Nov 2016 12:47:39 +0100 Subject: rename Page to Pic --- pic.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pic.go b/pic.go index a7c7827..94ed715 100644 --- a/pic.go +++ b/pic.go @@ -8,7 +8,7 @@ import ( "strings" ) -type Page []Path +type Pic []Path func parseLine(s string) (pa Path) { if strings.HasPrefix(s, "line from ") { @@ -23,7 +23,7 @@ func parseLine(s string) (pa Path) { return pa } -func parsePage() (pa Page) { +func parsePic() (pa Pic) { scanner := bufio.NewScanner(os.Stdin) for scanner.Scan() { if p := parseLine(scanner.Text()); p != nil { @@ -38,7 +38,7 @@ func parsePage() (pa Page) { func (r Robo) DrawPic() { //Landscape.Orientation(c) - for _, p := range parsePage() { + for _, p := range parsePic() { r.Line(p...) } } -- cgit v1.2.3