From bdd007bb4d8ddf6704e3212f67f0b1dc1f9d638d Mon Sep 17 00:00:00 2001 From: Parnic Date: Sun, 12 Jun 2022 13:37:24 -0500 Subject: [PATCH] Reduce changes needed to the template I always end up making these changes each time I copy from the template. --- days/template.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/days/template.go b/days/template.go index 1550b52..007136b 100644 --- a/days/template.go +++ b/days/template.go @@ -1,14 +1,16 @@ package days import ( - "parnic.com/aoc2019/utilities" + "fmt" + + u "parnic.com/aoc2019/utilities" ) type DayTemplate struct { } func (d *DayTemplate) Parse() { - utilities.GetIntLines("Templatep") + u.GetIntLines("Templatep") } func (d DayTemplate) Num() int { @@ -16,9 +18,9 @@ func (d DayTemplate) Num() int { } func (d *DayTemplate) Part1() string { - return "" + return fmt.Sprintf("%s%d%s", u.TextBold, 0, u.TextReset) } func (d *DayTemplate) Part2() string { - return "" + return fmt.Sprintf("%s%d%s", u.TextBold, 0, u.TextReset) }