mirror of
https://github.com/onyx-and-iris/aoc2024.git
synced 2025-01-09 14:20:48 +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
|
.env
|
||||||
|
|
||||||
# input files
|
# input files
|
||||||
partial.txt
|
**/testdata/*.txt
|
||||||
input.txt
|
|
||||||
|
# scaffold
|
||||||
|
mkfiles.sh
|
14
scaffold.sh
14
scaffold.sh
@ -56,6 +56,18 @@ func main() {
|
|||||||
}
|
}
|
||||||
EOT
|
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
|
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