How to use Cobra to create command-line interfaces

preview_player
Показать описание
Building command-line applications is a common use case for Go. The Cobra package offers tools for making command-line interfaces without having to manually process input and wrangle strings. This video tours the basics of this utility library, used by such popular Go projects as Kubernetes, to put together a CLI for a simple utility.

Follow InfoWorld for more app developer tips.
------------------------------­----
Рекомендации по теме
Комментарии
Автор

Defining echoOutput variable is not needed in initialization, it's not C++

developmentapp