Day 6
This commit is contained in:
13
day06/common/signal.go
Normal file
13
day06/common/signal.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
)
|
||||
|
||||
type Signal string
|
||||
|
||||
|
||||
func Parse(scanner bufio.Scanner) Signal {
|
||||
scanner.Scan()
|
||||
return Signal(scanner.Text())
|
||||
}
|
||||
Reference in New Issue
Block a user