aboutsummaryrefslogtreecommitdiff
path: root/2021/16/second.go
diff options
context:
space:
mode:
Diffstat (limited to '2021/16/second.go')
-rw-r--r--2021/16/second.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/2021/16/second.go b/2021/16/second.go
new file mode 100644
index 0000000..2669af7
--- /dev/null
+++ b/2021/16/second.go
@@ -0,0 +1,16 @@
+package main
+
+import (
+ "bufio"
+ "fmt"
+ "os"
+
+ "git.adyxax.org/aoc/2021/16/bits"
+)
+
+func main() {
+ scanner := bits.NewScanner(bufio.NewReader(os.Stdin))
+ b := scanner.Scan()
+ fmt.Println(b)
+ fmt.Println(b.Value)
+}