Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error interface {
// ErrorType returns type of error.
ErrorType() ErrorType
// FullAddress returns query string where cause first error.
FullAddress() string
}
Error get detail information of the errror.
type Proxy ¶
type Proxy interface {
// Nil returns true, if target value is nil.
Nil() bool
// Bool returns its value. If value isn't the type, it returns error.
Bool() (bool, error)
// Int64 returns its value. If value isn't the type, it returns error.
Int64() (int64, error)
// Float64 returns its value. If value isn't the type, it returns error.
Float64() (float64, error)
// String returns its value. If value isn't the type, it returns error.
String() (string, error)
// Array returns its value. If value isn't the type, it returns error.
Array() ([]interface{}, error)
// Map returns its value. If value isn't the type, it returns error.
Map() (map[string]interface{}, error)
// A returns an item from value treated as the array.
A(n int) Proxy
// M returns an item from value treated as the map.
M(k string) Proxy
// contains filtered or unexported methods
}
Proxy is a proxy to access a document (interface{}).
type Type ¶
type Type int
Type is type of value.
const ( // Tunknown shows value is not supported. Tunknown Type = iota // Tnil shows value is nil. Tnil // Tbool shows value is bool. Tbool // Tint64 shows value is int64. Tint64 // Tfloat64 shows value is float64. Tfloat64 // Tstring shows value is string. Tstring // Tarray shows value is an array ([]interface{}) Tarray // Tmap shows value is a map (map[string]interface{}) Tmap )
Click to show internal directories.
Click to hide internal directories.