# 0) 初始化 Go 项目
mkdir go-hello; cd go-hello
go mod init exmaple/hello
# 1) 编写代码 (hello.go)
package main
import (
"fmt"
"github.com/yuukisec/greetings-for-go"
)
func main() {
// Get a greeting message and print it.
message := greetings.Hello("Gladys")
fmt.Println(message)
}
# 2) 从本仓库同步依赖
go mod tidy
# 3) 运行项目
go run hello.go-
Notifications
You must be signed in to change notification settings - Fork 0
seckirin/greetings-for-go
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Packages 0
No packages published