day10

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommandTo

func AddCommandTo(cmd *cobra.Command)

AddCommandTo is used to add the command that exectutes the Solve function to the main command. This function is also used to load the challenge input. This function takes the root command as an input. The result of the Solve function will be printed to stdout.

func Solve

func Solve(stream io.Reader) (int, int, error)

Solve is used to find the solution to the problem. This function takes a stream of type io.Reader as input. It returns two integers and nil or 0, 0 and an error if one occurred.

Types

This section is empty.

Jump to

Keyboard shortcuts

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