Skip to content

tcollier/aoc_executor.go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

AoC Golang Executor

Golang executor for the Advent of Code Solver.

Signature

type Input interface{}

type solverFunc func(Input) string

func Executor(input Input, part1 solverFunc, part2 solverFunc, args []string)

Template Code

package main

import (
	"os"

	"aoc.com/tcollier"
)

func part1Answer(input tcollier.Input) string {
	return // the answer
}

func part2Answer(input tcollier.Input) string {
	return // the answer
}

func main() {
  var input = // load input
	tcollier.Executor(input, part1Answer, part2Answer, os.Args)
}

About

Go executor for AoC solver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages