diff options
author | Dimitri Sokolyuk <demon@dim13.org> | 2016-11-26 12:47:39 +0100 |
---|---|---|
committer | Dimitri Sokolyuk <demon@dim13.org> | 2016-11-26 12:47:39 +0100 |
commit | 413560591fc2d89a73eb8a33ba28b0cc3407b1db (patch) | |
tree | e8a31126dcaefaf577f6d5cc8d9a8827572c623a /pic.go | |
parent | 8f457a9a2a5b0852820026273ae425ef29ae85d8 (diff) |
rename Page to Pic
Diffstat (limited to 'pic.go')
-rw-r--r-- | pic.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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...) } } |