Skip to content

Commit df481aa

Browse files
committed
chore: set up 2022 workspace
1 parent ddb4123 commit df481aa

File tree

5 files changed

+51
-1
lines changed

5 files changed

+51
-1
lines changed

.air.toml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
root = "."
2+
testdata_dir = "testdata"
3+
tmp_dir = "tmp"
4+
5+
[build]
6+
args_bin = []
7+
bin = "./tmp/main"
8+
cmd = "go build -o ./tmp/main ."
9+
delay = 1000
10+
exclude_dir = ["assets", "tmp", "vendor", "testdata", "src/2021"]
11+
exclude_file = []
12+
exclude_regex = ["_test.go"]
13+
exclude_unchanged = false
14+
follow_symlink = false
15+
full_bin = ""
16+
include_dir = []
17+
include_ext = ["go", "tpl", "tmpl", "html"]
18+
kill_delay = "0s"
19+
log = "build-errors.log"
20+
send_interrupt = false
21+
stop_on_error = true
22+
23+
[color]
24+
app = ""
25+
build = "yellow"
26+
main = "magenta"
27+
runner = "green"
28+
watcher = "cyan"
29+
30+
[log]
31+
time = false
32+
33+
[misc]
34+
clean_on_exit = false
35+
36+
[screen]
37+
clear_on_rebuild = false

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
dist
22
node_modules
3-
.env
3+
.env
4+
tmp

go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/JosepBergay/adventofcode
2+
3+
go 1.19

go.work

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
go 1.19
2+
3+
use (
4+
.
5+
./src/2022
6+
)

src/2022/go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module aoc2022
2+
3+
go 1.19

0 commit comments

Comments
 (0)