jsonmap

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromMap

func FromMap[V any](values map[string]V) datatypes.JSONMap

FromMap converts a map into a GORM JSON map value.

func FromStringMap

func FromStringMap(values map[string]string) datatypes.JSONMap

FromStringMap converts a string map into a GORM JSON map value.

func Lookup

func Lookup[T any](values datatypes.JSONMap, key string) (T, bool)

Lookup returns the value stored under key if it has type T.

func ToStringMap

func ToStringMap(values datatypes.JSONMap) map[string]string

ToStringMap converts a JSON map into a string map.

Types

This section is empty.

Jump to

Keyboard shortcuts

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