console

package module
v3.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 7 Imported by: 1

README

Console

Package github.com/fuyibing/console/v3, Console for golang application.

Usage
go run main.go

Documentation

Overview

Package console define quick guider functions.

> Run with source code

go run main.go
go run main.go help
go run main.go help docs

> Build binary file named as demo

go build -o demo

> Run with binary file

./demo
./demo help
./demo help docs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() (mng managers.Manager, err error)

Default function create and return default manager with built-in commands.

func Latest

func Latest() (mng managers.Manager, err error)

Latest function create and return latest.

func New

func New() (managers.Manager, error)

New function create and return manager instance with help command.

Types

This section is empty.

Directories

Path Synopsis
Package commands built-in commands.
Package commands built-in commands.
consul
Package consul work for service register and find.
Package consul work for service register and find.
consul/kv
Package kv read and write configuration by consul kv pair.
Package kv read and write configuration by consul kv pair.
consul/kv/download
Package download read configurations from consul kv storage and store to local yaml files.
Package download read configurations from consul kv storage and store to local yaml files.
consul/kv/upload
Package upload scan and read local config files and put to consul kv storage.
Package upload scan and read local config files and put to consul kv storage.
consul/service
Package service register and deregister service on consul service storage.
Package service register and deregister service on consul service storage.
consul/service/deregister
Package deregister remove registered service on consul.
Package deregister remove registered service on consul.
consul/service/register
Package register build service and register to consul.
Package register build service and register to consul.
docs
Package docs generate application documents as markdown files or postman collection and so on.
Package docs generate application documents as markdown files or postman collection and so on.
help
Package help print manager and command information on terminal.
Package help print manager and command information on terminal.
Package managers implements support for command management.
Package managers implements support for command management.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL