encoding

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalJSONValue

func MarshalJSONValue(v any) (js.Value, error)

MarshalJSONValue encodes a Go value into a JavaScript value. The encoding is done via Go's encoding/json.Marshal and JavaScript's JSON.parse.

func UnmarshalJSONValue

func UnmarshalJSONValue(src js.Value, v any) error

UnmarshalJSONValue decodes a JavaScript value into a Go value. The decoding is done via JavaScript's JSON.stringify and Go's encoding/json.Unmarshal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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