Documentation ¶
Index ¶
- type JsonLDReader
- type Nothing
- func (n Nothing) BoolOrElse(defaultValue bool) bool
- func (n Nothing) BoolOrThrow(err error) (bool, error)
- func (n Nothing) FloatOrElse(defaultValue float64) float64
- func (n Nothing) FloatOrThrow(err error) (float64, error)
- func (n Nothing) Get() any
- func (n Nothing) GetOrElse(defaultValue any) any
- func (n Nothing) GetOrThrow(err error) (any, error)
- func (n Nothing) IntOrElse(defaultValue int) int
- func (n Nothing) IntOrThrow(err error) (int, error)
- func (n Nothing) Length() int
- func (n Nothing) ReadIndex(int) JsonLDReader
- func (n Nothing) ReadKey(string) JsonLDReader
- func (n Nothing) StringOrElse(defaultValue string) string
- func (n Nothing) StringOrThrow(err error) (string, error)
- func (n Nothing) Value() any
- type Reader
- func (r Reader) BoolOrElse(defaultValue bool) bool
- func (r Reader) BoolOrThrow(err error) (bool, error)
- func (r Reader) FloatOrElse(defaultValue float64) float64
- func (r Reader) FloatOrThrow(err error) (float64, error)
- func (r Reader) Get() any
- func (r Reader) GetOrElse(defaultValue any) any
- func (r Reader) GetOrThrow(err error) (any, error)
- func (r Reader) IntOrElse(defaultValue int) int
- func (r Reader) IntOrThrow(err error) (int, error)
- func (r Reader) Length() int
- func (r Reader) ReadIndex(index int) JsonLDReader
- func (r Reader) ReadKey(key string) JsonLDReader
- func (r Reader) StringOrElse(defaultValue string) string
- func (r Reader) StringOrThrow(err error) (string, error)
- func (r Reader) Value() any
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonLDReader ¶
type JsonLDReader interface { Value() any Length() int ReadKey(string) JsonLDReader ReadIndex(int) JsonLDReader Get() any GetOrElse(any) any GetOrThrow(error) (any, error) StringOrElse(string) string StringOrThrow(error) (string, error) BoolOrElse(bool) bool BoolOrThrow(error) (bool, error) IntOrElse(int) int IntOrThrow(error) (int, error) FloatOrElse(float64) float64 FloatOrThrow(error) (float64, error) }
func ParseJsonLD ¶
func ParseJsonLD(value any, options *ld.JsonLdOptions) (JsonLDReader, error)
type Nothing ¶
type Nothing struct {
Error error
}
func (Nothing) BoolOrElse ¶
func (Nothing) FloatOrElse ¶
func (Nothing) ReadIndex ¶
func (n Nothing) ReadIndex(int) JsonLDReader
func (Nothing) ReadKey ¶
func (n Nothing) ReadKey(string) JsonLDReader
func (Nothing) StringOrElse ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (Reader) BoolOrElse ¶
func (Reader) FloatOrElse ¶
func (Reader) ReadIndex ¶
func (r Reader) ReadIndex(index int) JsonLDReader
func (Reader) ReadKey ¶
func (r Reader) ReadKey(key string) JsonLDReader
func (Reader) StringOrElse ¶
Click to show internal directories.
Click to hide internal directories.