go-pattern-examples/main.go

20 lines
286 B
Go
Raw Permalink 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 {
2020-05-01 07:06:35 +03:00
fmt.Println("start go!")
return fmt.Sprintln(contents)
2020-04-28 17:48:25 +03:00
}