xjson

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

...

Functions

func Minify

func Minify(v interface{}) string

Minify ...

func Pretty

func Pretty(v interface{}) string

Pretty ...

func ToGoStruct

func ToGoStruct(s string) (string, error)

ToGoStruct ...

Types

type JSON

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

JSON ...

func New

func New(s string) *JSON

New ...

func (*JSON) Index

func (j *JSON) Index(index int) *JSON

Index ...

func (*JSON) Key

func (j *JSON) Key(key string) *JSON

Key ...

func (*JSON) ToInt64

func (j *JSON) ToInt64() int64

ToInt ...

func (*JSON) ToJSON

func (j *JSON) ToJSON() string

ToJSON ...

func (*JSON) ToMap

func (j *JSON) ToMap() map[string]interface{}

ToMap ...

func (*JSON) ToSlice

func (j *JSON) ToSlice() []interface{}

ToSlice ...

func (*JSON) ToString

func (j *JSON) ToString() string

ToString ...

func (*JSON) Value

func (j *JSON) Value() interface{}

Value ...

Jump to

Keyboard shortcuts

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