mirror of
https://github.com/crazybber/go-pattern-examples.git
synced 2024-11-29 06:56:03 +03:00
18 lines
262 B
Go
18 lines
262 B
Go
|
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!")
|
||
|
}
|