gjson

package
v0.0.0-...-7915011 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Raw string
}

func NewResult

func NewResult(raw string) (r *Result)

func (*Result) Bool

func (r *Result) Bool() (bb bool)

func (*Result) Float32

func (r *Result) Float32() (f32 float32)

func (*Result) Float32Or

func (r *Result) Float32Or(f float32) (f32 float32)

func (*Result) Float64

func (r *Result) Float64() (f64 float64)

func (*Result) Float64Or

func (r *Result) Float64Or(f float64) (f64 float64)

func (*Result) Int

func (r *Result) Int() (ii int)

func (*Result) Int16

func (r *Result) Int16() (i16 int16)

func (*Result) Int16Or

func (r *Result) Int16Or(i int16) (i16 int16)

func (*Result) Int32

func (r *Result) Int32() (i32 int32)

func (*Result) Int32Or

func (r *Result) Int32Or(i int32) (i32 int32)

func (*Result) Int64

func (r *Result) Int64() (i64 int64)

func (*Result) Int64Or

func (r *Result) Int64Or(i int64) (i64 int64)

func (*Result) Int8

func (r *Result) Int8() (i8 int8)

func (*Result) Int8Or

func (r *Result) Int8Or(i int8) (i8 int8)

func (*Result) IntOr

func (r *Result) IntOr(i int) (ii int)

func (*Result) String

func (r *Result) String() (ss string)

func (*Result) StringOr

func (r *Result) StringOr(s string) (ss string)

func (*Result) Uint

func (r *Result) Uint() (uu uint)

func (*Result) Uint16

func (r *Result) Uint16() (u16 uint16)

func (*Result) Uint16Or

func (r *Result) Uint16Or(u uint16) (u16 uint16)

func (*Result) Uint32

func (r *Result) Uint32() (u32 uint32)

func (*Result) Uint32Or

func (r *Result) Uint32Or(u uint32) (u32 uint32)

func (*Result) Uint64

func (r *Result) Uint64() (u64 uint64)

func (*Result) Uint64Or

func (r *Result) Uint64Or(u uint64) (u64 uint64)

func (*Result) Uint8

func (r *Result) Uint8() (u8 uint8)

func (*Result) Uint8Or

func (r *Result) Uint8Or(u uint8) (u8 uint8)

func (*Result) UintOr

func (r *Result) UintOr(u uint) (uu uint)

type Selector

type Selector struct {
	// contains filtered or unexported fields
}

func NewSelectorFromBytes

func NewSelectorFromBytes(bs []byte) (selector *Selector, err error)

NewSelectorFromBytes selector from bytes

func NewSelectorFromStr

func NewSelectorFromStr(str string) (selector *Selector, err error)

NewSelectorFromStr selector from str

func (*Selector) Many

func (s *Selector) Many(path string) (results []*Result)

func (*Selector) ManySelector

func (s *Selector) ManySelector(path string) (selectors []*Selector)

func (*Selector) One

func (s *Selector) One(path string) *Result

func (*Selector) OneSelector

func (s *Selector) OneSelector(path string) *Selector

func (*Selector) String

func (s *Selector) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL