Documentation ¶
Index ¶
- Variables
- func Abs(x int) int
- func IsLower(s string) bool
- func Max(x, y int) int
- func MaxInts(ns []int) int
- func Min(x, y int) int
- func MinInts(ns []int) int
- func Product(ns []int) int
- func ReadIntLines(name string) ([][]int, error)
- func ReadIntLinesReader(r io.Reader) ([][]int, error)
- func ReadInts(name string) ([]int, error)
- func ReadStringGroups(name string) ([][]string, error)
- func ReadStrings(name string) ([]string, error)
- func Sign(x int) int
- func Sum(ns []int) int
- type XY
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingInput = errors.New("advent2021: missing input") ErrNoSolution = errors.New("advent2021: no solution") )
Functions ¶
func ReadIntLines ¶
func ReadStringGroups ¶
ReadStringGroups reads a file of string data formed of groups of lines, where groups are separated by an empty line.
func ReadStrings ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.