Create main.go
This commit is contained in:
parent
68cfb2e85f
commit
6ea554dd4f
1 changed files with 12 additions and 0 deletions
12
main.go
Normal file
12
main.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
fmt.Println(HelloWorld())
|
||||
}
|
||||
|
||||
// HelloWorld is a function that returns a string containing "hello world"
|
||||
func HelloWorld() string {
|
||||
return "hello, world"
|
||||
}
|
Loading…
Add table
Reference in a new issue