aoc21/main.go

22 lines
377 B
Go
Raw Normal View History

2022-02-07 21:59:19 +02:00
package main
import (
"bufio"
"fmt"
"os"
"strings"
"github.com/fotonmoton/aoc2021/client"
"github.com/fotonmoton/aoc2021/d1"
)
func main() {
reader := bufio.NewReader(os.Stdin)
fmt.Print("Enter your session: ")
session, _ := reader.ReadString('\n')
client := client.NewClient(strings.TrimSpace(session))
fmt.Printf("day1: %v\n", d1.D1(string(client.Day(1))))
}