{"modulePath":"github.com/volcengine/volcengine-cli","version":"v1.2.3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package util\n\n## Functions\n\n```go\nfunc Black() *colorPrinter\n```\n\n```go\nfunc Blue() *colorPrinter\n```\n\n```go\nfunc ColorizeJSON(content []byte) []byte\n```\nColorizeJSON adds ANSI colors to already-encoded JSON tokens.\n\n```go\nfunc Cyan() *colorPrinter\n```\n\n```go\nfunc GetConfigFileDir() (string, error)\n```\n\n```go\nfunc Green() *colorPrinter\n```\n\n```go\nfunc IsJsonArray(value string) bool\n```\n\n```go\nfunc IsRepeatedField(f string) bool\n```\n\n```go\nfunc Magenta() *colorPrinter\n```\n\n```go\nfunc OpenBrowser(url string) error\n```\nOpenBrowser 打开浏览器\n\n```go\nfunc ParseToJsonArrayOrObject(s string) (interface{}, bool)\n```\nParseToJsonArrayOrObject try to parse string to json array or json object\n\n```go\nfunc Print(a ...interface{}) *colorPrinter\n```\n\n```go\nfunc Printf(format string, a ...interface{}) *colorPrinter\n```\n\n```go\nfunc Println(a ...interface{}) *colorPrinter\n```\n\n```go\nfunc Red() *colorPrinter\n```\n\n```go\nfunc ShowJson(data interface{}, color bool)\n```\nShowJson prints data as JSON to stdout. Errors are ignored for backward compatibility with existing configure output.\n\n```go\nfunc UnixTimestampToTime(ts int64) time.Time\n```\n\n```go\nfunc White() *colorPrinter\n```\n\n```go\nfunc WriteJson(w io.Writer, data interface{}, color bool) error\n```\nWriteJson writes indented JSON and optionally adds ANSI token colors.\n\n```go\nfunc Yellow() *colorPrinter\n```\n\n","path":"github.com/volcengine/volcengine-cli/util","name":"util","synopsis":"","isRedistributable":true}
