util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShouldJson

func ShouldJson(buf []byte) (interface{}, bool)

func ShouldJsonArray

func ShouldJsonArray(buf []byte) (*[]Obj, bool)

ShouldJsonArray returns if the buf should be in json array format

func ShouldTable

func ShouldTable(buf string) bool

ShouldTable returns if the buf should be in table format

func ShouldYaml

func ShouldYaml(buf string) bool

ShouldYaml returns if the buf should be in yaml format

Types

type Obj

type Obj = map[string]interface{}

func ShouldJsonObj

func ShouldJsonObj(buf []byte) (*Obj, bool)

ShouldJsonObj returns if the buf should be in simple json format

Jump to

Keyboard shortcuts

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