day02

package
v0.0.0-...-acf6961 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Part1

func Part1(cmds []Command) int

func Part2

func Part2(cmds []Command) int

Types

type Command

type Command struct {
	Direction Direction
	Units     int
}

func ParseCommands

func ParseCommands(in []string) ([]Command, error)

type Direction

type Direction int
const (
	Forward Direction = iota
	Down
	Up
)

Jump to

Keyboard shortcuts

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