Skip to content

seckirin/greetings-for-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

greetings-for-go

# 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages