aoc2024/.scaffold/aoc/{{ .Project }}/solve.go
onyx-and-iris 88f082080d remove scaffold.sh
add scaffold aoc template
2024-12-27 22:13:33 +00:00

21 lines
418 B
Go

package solutions
import (
"github.com/onyx-and-iris/aoc{{ .Scaffold.year }}/{{ .Project }}/internal/one"
"github.com/onyx-and-iris/aoc{{ .Scaffold.year }}/{{ .Project }}/internal/two"
)
func Solve(buf []byte) (int, int, error) {
answerOne, err := one.Solve(buf)
if err != nil {
return 0, 0, err
}
answerTwo, err := two.Solve(buf)
if err != nil {
return 0, 0, err
}
return answerOne, answerTwo, nil
}