day04_2020

package
v0.0.0-...-359cf57 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PassportHasRequiredFields

func PassportHasRequiredFields(p Passport) bool

func PassportHasValidFields

func PassportHasValidFields(p Passport) bool

Types

type Passport

type Passport struct {
	Fields map[string]PassportField
}

func NewPassport

func NewPassport() *Passport

type PassportField

type PassportField struct {
	Name  string
	Value string
}

type Solver

type Solver struct {
	Passports []Passport
}

func NewSolver

func NewSolver() *Solver

func (*Solver) Part1

func (s *Solver) Part1() (string, error)

func (*Solver) Part2

func (s *Solver) Part2() (string, error)

func (*Solver) ProcessInput

func (s *Solver) ProcessInput(input string) error

Jump to

Keyboard shortcuts

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