jany

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: MIT Imports: 5 Imported by: 0

README

Jany

Package jany provides a set of functions to parse and interact with json data.

Documentation

Overview

Package jany provides a set of functions to parse and interact with json data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Jany

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

Jany is a struct that holds any type of data, allowing for flexible parsing and manipulation.

func Data

func Data(b []byte) (*Jany, error)

Data returns a new Jany instance from the given byte slice.

func Read

func Read(r io.Reader) (*Jany, error)

Read returns a new Jany instance from the given reader.

func (*Jany) Bool

func (j *Jany) Bool() bool

Bool returns the bool representation of the current Jany instance.

func (*Jany) Dict

func (j *Jany) Dict() map[string]*Jany

Dict returns the dict representation of the current Jany instance.

func (*Jany) Float32

func (j *Jany) Float32() float32

Float32 returns the float32 representation of the current Jany instance.

func (*Jany) Float64

func (j *Jany) Float64() float64

Float64 returns the float64 representation of the current Jany instance.

func (*Jany) Get

func (j *Jany) Get(k string) *Jany

Get returns the Jany[k].

func (*Jany) Idx

func (j *Jany) Idx(k int) *Jany

Idx returns the Jany[i].

func (*Jany) Int

func (j *Jany) Int() int

Int returns the int representation of the current Jany instance.

func (*Jany) Int16

func (j *Jany) Int16() int16

Int16 returns the int16 representation of the current Jany instance.

func (*Jany) Int32

func (j *Jany) Int32() int32

Int32 returns the int32 representation of the current Jany instance.

func (*Jany) Int64

func (j *Jany) Int64() int64

Int64 returns the int64 representation of the current Jany instance.

func (*Jany) Int8

func (j *Jany) Int8() int8

Int8 returns the int8 representation of the current Jany instance.

func (*Jany) List

func (j *Jany) List() []*Jany

List returns the list representation of the current Jany instance.

func (*Jany) String

func (j *Jany) String() string

String returns the string representation of the current Jany instance.

func (*Jany) Uint

func (j *Jany) Uint() uint

Uint returns the uint representation of the current Jany instance.

func (*Jany) Uint16

func (j *Jany) Uint16() uint16

Uint16 returns the uint16 representation of the current Jany instance.

func (*Jany) Uint32

func (j *Jany) Uint32() uint32

Uint32 returns the uint32 representation of the current Jany instance.

func (*Jany) Uint64

func (j *Jany) Uint64() uint64

Uint64 returns the uint64 representation of the current Jany instance.

func (*Jany) Uint8

func (j *Jany) Uint8() uint8

Uint8 returns the uint8 representation of the current Jany instance.

Jump to

Keyboard shortcuts

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