go-pattern-examples/main.go

18 lines
262 B
Go
Raw Normal View History

2020-04-28 17:48:25 +03:00
package main
import (
"fmt"
"github.com/logrusorgru/aurora" //这是一个控制台可以多种颜色输出的颜色库
)
func main() {
startGo := letsGo()
fmt.Sprintln(aurora.Green(startGo))
}
func letsGo() string {
return fmt.Sprintln("start go!")
}