Documentation ¶
Index ¶
- func CountryShort(country string) string
- func Debug(prefix string, obj interface{}, stdout *Stdout)
- func FormatBasicAuth(user, pass string) string
- func InterfaceToMap(prefix string, i interface{}) (map[string]interface{}, error)
- func JsonMarshal(t interface{}) ([]byte, error)
- func Output(query, to string, prefix string, opts []interface{}, bytes []byte, ...)
- func OutputJson(outputOpts OutputOptions, prefix string, opts []interface{}, bytes []byte, ...)
- func OutputRaw(output string, bytes []byte, stdout *Stdout)
- func ReadAndMarshal(input string) (map[string]interface{}, error)
- func RemoveEmptyStrings(items []string) []string
- func TruncateString(str string, length int) string
- type Country
- type Jsonata
- type JsonataOptions
- type Logger
- type OutputOptions
- type Stdout
- func (so *Stdout) Debug(obj interface{}, args ...interface{})
- func (so *Stdout) Error(obj interface{}, args ...interface{})
- func (so *Stdout) Info(obj interface{}, args ...interface{})
- func (so *Stdout) Panic(obj interface{}, args ...interface{})
- func (so *Stdout) SetCallerOffset(offset int)
- func (so *Stdout) Warn(obj interface{}, args ...interface{})
- type StdoutOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountryShort ¶ added in v0.15.0
func FormatBasicAuth ¶ added in v0.9.14
func InterfaceToMap ¶ added in v0.6.6
func JsonMarshal ¶ added in v0.4.3
we need custom json marshal due to no html escaption
func OutputJson ¶ added in v0.2.0
func OutputJson(outputOpts OutputOptions, prefix string, opts []interface{}, bytes []byte, stdout *Stdout)
func ReadAndMarshal ¶ added in v0.6.6
func RemoveEmptyStrings ¶ added in v0.10.0
func TruncateString ¶ added in v0.2.4
Types ¶
type Country ¶ added in v0.15.0
func NewCountry ¶ added in v0.15.0
func NewCountryWithAliases ¶ added in v0.15.0
type Jsonata ¶ added in v0.9.2
type Jsonata struct {
// contains filtered or unexported fields
}
func NewJsonata ¶ added in v0.9.2
func NewJsonata(options JsonataOptions) *Jsonata
func (*Jsonata) RegisterVars ¶ added in v0.9.2
type JsonataOptions ¶ added in v0.9.2
type JsonataOptions struct { }
type Logger ¶ added in v0.5.0
type Logger interface { Info(obj interface{}, args ...interface{}) Warn(obj interface{}, args ...interface{}) Debug(obj interface{}, args ...interface{}) Error(obj interface{}, args ...interface{}) }
type OutputOptions ¶ added in v0.2.0
type Stdout ¶
type Stdout struct {
// contains filtered or unexported fields
}
func NewStdout ¶
func NewStdout(options StdoutOptions) *Stdout
func (*Stdout) SetCallerOffset ¶
Click to show internal directories.
Click to hide internal directories.