String returns a string representation of the direction
()
| 16 | |
| 17 | // String returns a string representation of the direction |
| 18 | func (d Direction) String() string { |
| 19 | switch d { |
| 20 | case Up: |
| 21 | return "up" |
| 22 | case Down: |
| 23 | return "down" |
| 24 | default: |
| 25 | return "directionless" |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | // Constants for direction |
| 30 | const ( |
no outgoing calls