Documentation ¶
Index ¶
- Constants
- func FormatOptions() string
- func JSON(data interface{})
- func Print(data interface{}) (err error)
- func PrintResultTable(tableData [][]string)
- func Printf(format string, a ...interface{})
- func SetFormat(format Format) (err error)
- func SetPrettyPrint(pretty bool) (err error)
- func Text(data interface{})
- func YAML(data interface{})
- type ConfigOption
- type Format
- type Output
Constants ¶
View Source
const DefaultFormat = FormatJSON
View Source
const DefaultPretty = true
View Source
const DefaultTerminalWidth = 80
Variables ¶
This section is empty.
Functions ¶
func FormatOptions ¶
func FormatOptions() string
func JSON ¶
func JSON(data interface{})
JSON allows you to override the default output method and explicitly print JSON to the screen
func PrintResultTable ¶ added in v0.71.0
func PrintResultTable(tableData [][]string)
PrintResultTable prints the New Relic Synthetic Atuomated tests in a tabular format by default
func Printf ¶ added in v0.8.11
func Printf(format string, a ...interface{})
Printf renders output based on the format and data provided
func SetPrettyPrint ¶
Types ¶
type ConfigOption ¶
func ConfigFormat ¶
func ConfigFormat(format Format) ConfigOption
func ConfigPrettyPrint ¶
func ConfigPrettyPrint(pretty bool) ConfigOption
type Format ¶
type Format uint
Format provides the list of output formats supported
func ParseFormat ¶
Click to show internal directories.
Click to hide internal directories.