utils

package
v0.0.0-...-7447044 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KEY_ORG_ID       string = "orgId"
	KEY_TOKEN        string = "authToken"
	KEY_URI          string = "uri"
	KEY_DEBUG        string = "debug_mode"
	KEY_FORMAT       string = "format"
	CONFIG_FILE_NAME string = ".anypoint-cli"
)
View Source
const (
	OUTPUT_JSON = "json"
	OUTPUT_YAML = "yaml"
	OUTPUT_LIST = "list"
)

Variables

This section is empty.

Functions

func Debug

func Debug(doSomething func())

func OpenYAMLFile

func OpenYAMLFile(f string, t interface{}) error

func PrintAsJSON

func PrintAsJSON(objects []interface{})

func PrintAsList

func PrintAsList(objects []interface{}, extractTabularDataFunc func([]interface{}) [][]string, headers []string)

func PrintObject

func PrintObject(objects []interface{}, headers []string, extractTabularDataFunc func([]interface{}) [][]string)

func PrintTabular

func PrintTabular(headers []string, data [][]string)

func WriteConfig

func WriteConfig()

Types

This section is empty.

Jump to

Keyboard shortcuts

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