Compare commits
2 commits
4c51b244e5
...
fd798451f4
Author | SHA1 | Date | |
---|---|---|---|
![]() |
fd798451f4 | ||
![]() |
9e87ed8178 |
4 changed files with 26 additions and 0 deletions
3
go.mod
Normal file
3
go.mod
Normal file
|
@ -0,0 +1,3 @@
|
|||
module template
|
||||
|
||||
go 1.21.5
|
11
makefile
Normal file
11
makefile
Normal file
|
@ -0,0 +1,11 @@
|
|||
run:
|
||||
go run src/*.go
|
||||
|
||||
build:
|
||||
go build -o bin/main src/main.go
|
||||
|
||||
clean:
|
||||
rm -rf bin/*
|
||||
|
||||
format:
|
||||
go fmt src/*.go
|
7
src/greet.go
Normal file
7
src/greet.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func greet() {
|
||||
fmt.Println("Hello World!")
|
||||
}
|
5
src/main.go
Normal file
5
src/main.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
package main
|
||||
|
||||
func main() {
|
||||
greet()
|
||||
}
|
Loading…
Reference in a new issue