/
githubmirror
/
LeetCode-Go
Обзор
Документация
Войти
/
githubmirror
/
LeetCode-Go
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
1.7.0
ctl/version.go
18 строк
282 B
YDZ
Ctl add build chapter-two
15 янв 2021, 17:32
15 янв 2021, 17:32
5b58e62
Код
Авторство
О чём код?
package main import ( "fmt" "github.com/spf13/cobra" ) var ( version = "v1.0" versionCmd = &cobra.Command{ Use: "version", Short: "Prints the version of tacoctl", Run: func(cmd *cobra.Command, args []string) { fmt.Println("tacoctl version:", version) }, } )