mirror of
https://github.com/crazybber/go-pattern-examples.git
synced 2024-11-28 22:46:03 +03:00
20 lines
286 B
Go
20 lines
286 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/logrusorgru/aurora" //这是一个控制台可以多种颜色输出的颜色库
|
|
)
|
|
|
|
func main() {
|
|
|
|
startGo := letsGo()
|
|
fmt.Sprintln(aurora.Green(startGo))
|
|
}
|
|
|
|
func letsGo() string {
|
|
fmt.Println("start go!")
|
|
|
|
return fmt.Sprintln(contents)
|
|
}
|