mirror of
https://github.com/onyx-and-iris/aoc2024.git
synced 2025-01-09 06:10:47 +00:00
upd scaffold
This commit is contained in:
parent
f0bf82c96a
commit
d32b376619
6
.gitignore
vendored
6
.gitignore
vendored
@ -26,5 +26,7 @@ go.work.sum
|
||||
.env
|
||||
|
||||
# input files
|
||||
partial.txt
|
||||
input.txt
|
||||
**/testdata/*.txt
|
||||
|
||||
# scaffold
|
||||
mkfiles.sh
|
14
scaffold.sh
14
scaffold.sh
@ -56,6 +56,18 @@ func main() {
|
||||
}
|
||||
EOT
|
||||
|
||||
touch "$name"/solve.go
|
||||
cat <<EOT >> "$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"
|
||||
go mod init github.com/onyx-and-iris/aoc2024/"$name"
|
||||
|
||||
MKFILES=../mkfiles.sh
|
||||
[[ -f $MKFILES ]] && ln -s $MKFILES .
|
Loading…
Reference in New Issue
Block a user