go

command module
v0.0.0-...-5bd4ecb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 14 Imported by: 0

README

Advent of Code (Go)

Advent of Code solutions in the Go Programming Language.

aoc CLI tool

The project provides a useful CLI tool aoc which can be installed with the make command. It will be installed in the default location for Go binaries which is at $GOPATH/bin. Following make targets are provided:

  • make (default): build and install the aoc binary at the default path
  • make clean: remove the build artifacts such as the aoc binary
  • make tidy: run go mod tidy
Usage
Usage: aoc [-y <year>] [-d <day>] [-t] [-cpuprofile] [-memprofile]

Options:
  -cpuprofile
        write a CPU profile
  -d int
        run solution for given day (default 25)
  -memprofile
        write a memory profile
  -t    run the test input instead
  -y int
        run solution for given year (default 2021)

Note: The default value for -d (day) and -y (year) flags are calculated at runtime as per the current date.

Packages

Go Reference

There are various utility functions provided in the util package. Additional packages which contains implementation for various data structures and algorithms are also provided in the pkg/ subdirectory. See the Documentation for more details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
counter
Package counter implements a generic counter for counting items.
Package counter implements a generic counter for counting items.
iterator
Package iterator implements a generic iterator protocol.
Package iterator implements a generic iterator protocol.
matrix
Package matrix provides a generic implementation of matrix structure.
Package matrix provides a generic implementation of matrix structure.
ocr
Package ocr provides ability to convert Advent of Code ASCII art letters to plain characters.
Package ocr provides ability to convert Advent of Code ASCII art letters to plain characters.
operator
Package operator provides a set of generic functions corresponding to the intrinsic operators of Golang.
Package operator provides a set of generic functions corresponding to the intrinsic operators of Golang.
set
Package set implements a set of any comparable type.
Package set implements a set of any comparable type.
stack
Package stack implements a generic stack data structure.
Package stack implements a generic stack data structure.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL