From d32b37661922a3b15572372b5ec1a3a93b81d453 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Tue, 3 Dec 2024 14:42:35 +0000 Subject: [PATCH] upd scaffold --- .gitignore | 6 ++++-- scaffold.sh | 14 +++++++++++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index e6b40cd..3943db3 100644 --- a/.gitignore +++ b/.gitignore @@ -26,5 +26,7 @@ go.work.sum .env # input files -partial.txt -input.txt +**/testdata/*.txt + +# scaffold +mkfiles.sh \ No newline at end of file diff --git a/scaffold.sh b/scaffold.sh index 992b044..dc26ac6 100755 --- a/scaffold.sh +++ b/scaffold.sh @@ -56,6 +56,18 @@ func main() { } EOT +touch "$name"/solve.go +cat <> "$name"/makefile +package name + +func Solve(data []byte) (int, int, error) { + return 0, 0, nil +} +EOT + cd "$name" || exit -go mod init github.com/onyx-and-iris/aoc2024/"$name" \ No newline at end of file +go mod init github.com/onyx-and-iris/aoc2024/"$name" + +MKFILES=../mkfiles.sh +[[ -f $MKFILES ]] && ln -s $MKFILES . \ No newline at end of file