Documentation ¶
Index ¶
- func Export(importedJson string) (ExportedJson, ResultJson, error)
- func GetType(v interface{}) (string, error)
- type ExportedJson
- type ResultJson
- func (r ResultJson) Bool() bool
- func (r ResultJson) BoolStrict() (bool, error)
- func (r ResultJson) Float() float64
- func (r ResultJson) FloatStrict() (float64, error)
- func (r ResultJson) Int() int64
- func (r ResultJson) IntStrict() (int64, error)
- func (r ResultJson) List() []interface{}
- func (r ResultJson) ListStrict() ([]interface{}, error)
- func (r ResultJson) Object() map[string]interface{}
- func (r ResultJson) ObjectStrict() (map[string]interface{}, error)
- func (r ResultJson) String() string
- func (r ResultJson) StringStrict() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Export ¶
func Export(importedJson string) (ExportedJson, ResultJson, error)
Types ¶
type ExportedJson ¶
type ExportedJson struct {
// contains filtered or unexported fields
}
func (*ExportedJson) Get ¶
func (expJson *ExportedJson) Get(keyRef string) (ResultJson, error)
type ResultJson ¶
type ResultJson struct { Type string // contains filtered or unexported fields }
func R ¶
func R(val interface{}) ResultJson
func (ResultJson) Bool ¶
func (r ResultJson) Bool() bool
func (ResultJson) BoolStrict ¶
func (r ResultJson) BoolStrict() (bool, error)
func (ResultJson) Float ¶
func (r ResultJson) Float() float64
func (ResultJson) FloatStrict ¶
func (r ResultJson) FloatStrict() (float64, error)
func (ResultJson) Int ¶
func (r ResultJson) Int() int64
func (ResultJson) IntStrict ¶
func (r ResultJson) IntStrict() (int64, error)
func (ResultJson) List ¶
func (r ResultJson) List() []interface{}
func (ResultJson) ListStrict ¶
func (r ResultJson) ListStrict() ([]interface{}, error)
func (ResultJson) Object ¶
func (r ResultJson) Object() map[string]interface{}
func (ResultJson) ObjectStrict ¶
func (r ResultJson) ObjectStrict() (map[string]interface{}, error)
func (ResultJson) String ¶
func (r ResultJson) String() string
func (ResultJson) StringStrict ¶
func (r ResultJson) StringStrict() (string, error)
Click to show internal directories.
Click to hide internal directories.