-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·56 lines (40 loc) · 855 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
# Check if a directory name is provided
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <directory-name>"
exit 1
fi
DIR_NAME=$1
MAIN_GO_CONTENT='package main
import (
"advent-of-code-2024/lib"
)
const TestString string = ``
/*
Part 1 Notes
*/
func solvePart1(input string) int {
return 0
}
/*
Part 2 Notes
*/
func solvePart2(input string) int {
return 0
}
func main() {
lib.AssertEqual(1, solvePart1(TestString))
// lib.AssertEqual(1, solvePart2(TestString))
// dataString := lib.GetDataString()
// result1 := solvePart1(dataString)
// fmt.Println(result1)
// result2 := solvePart2(dataString)
// fmt.Println(result2)
}
'
# Create the directory
mkdir -p "$DIR_NAME"
# Create an empty data.txt file
touch "$DIR_NAME/data.txt"
# Create main.go with the provided template
echo "$MAIN_GO_CONTENT" > "$DIR_NAME/main.go"