cmd

package
v0.0.0-...-a3d249e Latest Latest
Warning

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

Go to latest
Published: May 4, 2018 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "pedigree",
	Short: "pedigree is a simply request-logging server application.",
	Long: `
__________             .___.__                                  ._.
\______   \  ____    __| _/|__|   ____  _______   ____    ____  | |
 |     ___/_/ __ \  / __ | |  |  / ___\ \_  __ \_/ __ \ _/ __ \ | |
 |    |    \  ___/ / /_/ | |  | / /_/  > |  | \/\  ___/ \  ___/  \|
 |____|     \___  >\____ | |__| \___  /  |__|    \___  > \___  > __
                \/      \/     /_____/               \/      \/  \/
pedigree is a simply request-logging server application.
`,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type KVArray

type KVArray struct {
	Data []map[string]interface{} `json:"data,omitdata"`
}

KVArray Key-Value形式のペアオブジェクトを格納する

func NewKeyValueArray

func NewKeyValueArray() *KVArray

NewKeyValueArray KVArray生成

func (*KVArray) Add

func (k *KVArray) Add(kv map[string]interface{})

Add 要素を追加する

Jump to

Keyboard shortcuts

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