Merge pull request 'Add hello world Go program and Makefile' (#3) from implement/hello-world into main
This commit is contained in:
commit
e29e864cf9
3 changed files with 18 additions and 1 deletions
10
Makefile
Normal file
10
Makefile
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
.PHONY: build run clean
|
||||||
|
|
||||||
|
build:
|
||||||
|
go build -o hello main.go
|
||||||
|
|
||||||
|
run: build
|
||||||
|
./hello
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f hello
|
||||||
2
go.mod
2
go.mod
|
|
@ -1,3 +1,3 @@
|
||||||
module testbed
|
module testbed
|
||||||
|
|
||||||
go 1.26
|
go 1.24
|
||||||
|
|
|
||||||
7
main.go
Normal file
7
main.go
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
import "fmt"
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
fmt.Println("Hello, World!")
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue