jsonlib

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: CC0-1.0, CC0-1.0, CC0-1.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToValue

func ToValue(x interface{}) rt.Value

ToValue attempts to convert x to a Lua value. Supported types are

string
bool
int, int8, int16, int32, int64
uint, uint8, uint16, uint32, uint64
float32, float64
time.Time
[]string
[]bool
[]int, []int8, []int16, []int32, []int64
[]uint, []uint8, []uint16, []uint32, []uint64
[]float32, []float64
[]time.Time
[]interface{}
map[string]interface{}
fmt.Stringer

and recursion on these types where appropriate. Note that no attempt is made to detect cyclic data-structures.

Types

This section is empty.

Jump to

Keyboard shortcuts

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