json

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrNotImplemented ErrNotImplemented error
	ErrNotImplemented = errors.New("Browser not implemented JSON")
	ErrNotAJson       = errors.New("Object is not a Json")
)

Functions

func GetInterface

func GetInterface() js.Value

GetInterface get the JS interface

func Stringify

func Stringify(opts ...interface{}) (string, error)

func StringifyObject

func StringifyObject(object interface{}) (string, error)

Types

type Json

type Json struct {
	object.Object
}

Json struct

func NewFromJSObject

func NewFromJSObject(obj js.Value) (Json, error)

func Parse

func Parse(data string) (Json, error)

func (Json) Json_

func (i Json) Json_() Json

func (Json) Map

func (j Json) Map() interface{}

type JsonFrom

type JsonFrom interface {
	Json_() Json
}

Jump to

Keyboard shortcuts

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