Go mod and sample source
This commit is contained in:
parent
4c51b244e5
commit
9e87ed8178
3 changed files with 15 additions and 0 deletions
3
go.mod
Normal file
3
go.mod
Normal file
|
@ -0,0 +1,3 @@
|
|||
module template
|
||||
|
||||
go 1.21.5
|
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