Skip to content

Commit 327da90

Browse files
committed
New Go project for 2024 problems
1 parent b850744 commit 327da90

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

go/go.mod

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

go/main.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package main
2+
3+
import (
4+
"fmt"
5+
)
6+
7+
//TIP <p>To run your code, right-click the code and select <b>Run</b>.</p> <p>Alternatively, click
8+
// the <icon src="AllIcons.Actions.Execute"/> icon in the gutter and select the <b>Run</b> menu item from here.</p>
9+
10+
func main() {
11+
//TIP <p>Press <shortcut actionId="ShowIntentionActions"/> when your caret is at the underlined text
12+
// to see how GoLand suggests fixing the warning.</p><p>Alternatively, if available, click the lightbulb to view possible fixes.</p>
13+
s := "gopher"
14+
fmt.Println("Hello and welcome, %s!", s)
15+
16+
for i := 1; i <= 5; i++ {
17+
//TIP <p>To start your debugging session, right-click your code in the editor and select the Debug option.</p> <p>We have set one <icon src="AllIcons.Debugger.Db_set_breakpoint"/> breakpoint
18+
// for you, but you can always add more by pressing <shortcut actionId="ToggleLineBreakpoint"/>.</p>
19+
fmt.Println("i =", 100/i)
20+
}
21+
}

0 commit comments

Comments
 (0)