jsconv

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayFrom

func ArrayFrom(v js.Value) js.Value

func DateToTime

func DateToTime(v js.Value) time.Time

func DateToTimestamp

func DateToTimestamp(v js.Value) int64

func JSMapToMap added in v0.1.0

func JSMapToMap(v js.Value) (map[string]any, error)

func JSValueToMap

func JSValueToMap(v js.Value) (jsclass.GenericAnyMap, error)

func JSValueToMapString added in v0.0.3

func JSValueToMapString(v js.Value) (jsclass.GenericStringMap, error)

func MapToJSValue

func MapToJSValue(v jsclass.GenericAnyMap) js.Value

func MaybeBool

func MaybeBool(v js.Value) bool

func MaybeDate

func MaybeDate(v js.Value) time.Time

func MaybeInt

func MaybeInt(v js.Value) int

func MaybeInt64

func MaybeInt64(v js.Value) int64

func MaybeString

func MaybeString(v js.Value) string

func MaybeStringList

func MaybeStringList(v js.Value) []string

func StrRecordToMap

func StrRecordToMap(v js.Value) jsclass.GenericStringMap

func TimeToDate

func TimeToDate(t time.Time) js.Value

Types

This section is empty.

Jump to

Keyboard shortcuts

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