We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7cd897 commit bf49b27Copy full SHA for bf49b27
.github/workflows/ci.yml
@@ -17,7 +17,7 @@ jobs:
17
- name: Set up Go
18
uses: actions/setup-go@v4
19
with:
20
- go-version: '1.20'
+ go-version: '1.24'
21
22
- name: Cache Go modules
23
uses: actions/cache@v3
go.mod
@@ -1,3 +1,3 @@
1
module github.com/javy99/problem-solving-golang
2
3
-go 1.24.2
+go 1.24
main/hello.go
@@ -0,0 +1,5 @@
+package main
+
+func Hello() string {
4
+ return "Hello, world!"
5
+}
main/hello_test.go
@@ -0,0 +1,11 @@
+import "testing"
+func TestHello(t *testing.T) {
6
+ expected := "Hello, world!"
7
+ got := Hello()
8
+ if got != expected {
9
+ t.Errorf("Hello() = %q; want %q", got, expected)
10
+ }
11
0 commit comments