Documentation
¶
Index ¶
- Constants
- func BeautifyBytes(data []byte, colorify *bool) (dataStr, errStr string)
- func FilterResponse(data []byte) ([]byte, *errors.ApiError)
- func FormatResponse(data []byte, err *errors.ApiError, isBeautify bool) (dataStr string, errStr string)
- func IsJson(b []byte) bool
- func JsonMarshal(obj interface{}) ([]byte, error)
- func NewFileWriter(filePath string) io.Writer
- type OutClient
Constants ¶
View Source
const ( OutToStdout = "stdout" OutToClip = "clip" OutToFilePrefix = "file:" )
List of known output destinations.
Variables ¶
This section is empty.
Functions ¶
func BeautifyBytes ¶
func FormatResponse ¶
func JsonMarshal ¶
func NewFileWriter ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.