Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 573 Bytes

README.md

File metadata and controls

44 lines (30 loc) · 573 Bytes

goac

Go utilities for Advent of Code:

  • Utility/helper functions in the package goac.
  • A CLI in cmd

Utils

Use the utility functions in your Go code like so:

//main.go
package main

import (
    "fmt"

    "github.com/ryeguard/advent-of-code/goac"
)

func main() {
    input, err := goac.ReadInput("./path/to/file")
    if err != nil {
        panic(err)
    }

    fmt.Println(input)
}

CLI

Usage

To build and run:

# from the cmd dir (/goac/cmd)
go run . help

# from the project root
go run ./goac/cmd/main.go help