Lines Matching defs:Wrapper

14 type Wrapper struct {  struct
15 dat interface{}
16 err *Error
17 access []string
34 func (w *Wrapper) Marshal() ([]byte, error) {
39 func (w *Wrapper) MarshalJSON() ([]byte, error) {
43 func (w *Wrapper) MarshalPretty() string {
52 func (w *Wrapper) MarshalToDebug() string {
94 func (w *Wrapper) NewError(format string, a ...interface{}) *Error {
101 func (w *Wrapper) wrongType(want string, got reflect.Kind) *Error {
105 func (i *Wrapper) getData() interface{} { return i.dat }
106 func (i *Wrapper) IsOk() bool { return i.Error() == nil }
108 func (i *Wrapper) GetData() (dat interface{}, err error) {
117 func (i *Wrapper) GetDataVoid(dp *interface{}, ep *error) {
127 func (i *Wrapper) Error() (e error) {
134 func (i *Wrapper) GetDataOrNil() interface{} { return i.getData() }
214 func (i *Wrapper) sameType(w *Wrapper) bool {
218 func (i *Wrapper) AccessPath() string {
222 func (rd *Wrapper) GetFloat() (ret float64, err error) {
239 func (w *Wrapper) GetFloatVoid(fp *float64, errp *error) {
248 func (rd *Wrapper) GetInt64() (ret int64, err error) {
267 func (w *Wrapper) GetInt64Void(ip *int64, errp *error) {
276 func (rd *Wrapper) GetInt() (i int, err error) {
281 func (w *Wrapper) GetIntVoid(ip *int, errp *error) {
290 func (rd *Wrapper) GetUint() (u uint, err error) {
295 func (w *Wrapper) GetUintVoid(ip *uint, errp *error) {
304 func (rd *Wrapper) GetUint64() (ret uint64, err error) {
338 func (w *Wrapper) GetUint64Void(ip *uint64, errp *error) {
347 func (rd *Wrapper) GetInterface() (v interface{}, err error) {
356 func (rd *Wrapper) GetBool() (ret bool, err error) {
371 func (w *Wrapper) GetBoolVoid(bp *bool, errp *error) {
380 func (rd *Wrapper) GetString() (ret string, err error) {
395 func (rd *Wrapper) GetBytes() (ret []byte, err error) {
406 func (w *Wrapper) GetBytesVoid(bp *[]byte, errp *error) {
415 func (w *Wrapper) GetStringVoid(sp *string, errp *error) {
424 func (rd *Wrapper) AtIndex(i int) *Wrapper {
439 func (rd *Wrapper) Len() (ret int, err error) {
449 func (i *Wrapper) Keys() (v []string, err error) {
464 func (i *Wrapper) asArray() (ret *Wrapper, v []interface{}) {
479 func (rd *Wrapper) IsNil() bool {
483 func (rd *Wrapper) AtKey(s string) *Wrapper {
499 func (rd *Wrapper) ToDictionary() (out *Wrapper, e error) {
509 func (rd *Wrapper) ToArray() (out *Wrapper, e error) {
519 func (w *Wrapper) SetKey(s string, val *Wrapper) error {
527 func (w *Wrapper) DeleteKey(s string) error {
535 func (w *Wrapper) SetIndex(i int, val *Wrapper) error {
544 func (i *Wrapper) asDictionary() (ret *Wrapper, d map[string]interface{}) {
571 func (w *Wrapper) AtPath(path string) (ret *Wrapper) {
590 func (w *Wrapper) AtPathGetInt(path string) (ret int, ok bool) {
602 func (w *Wrapper) SetValueAtPath(path string, value *Wrapper) error {
649 func (w *Wrapper) DeleteValueAtPath(path string) error {
680 func (w *Wrapper) UnmarshalAgain(i interface{}) (err error) {
699 func (w *Wrapper) AssertEqAtPath(path string, obj *Wrapper, errp *error) {