Help us shape the future of Go! Take the 2026 Go Developer Survey

jsonval

package
v0.79.3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToValue

func ToValue(v any, t *runtimev1.Type) (any, error)

ToValue converts a value scanned from a database/sql driver to a Go type that can be marshaled to JSON. If v is a complex type, it may be mutated in-place.

func TrimQuotes added in v0.60.7

func TrimQuotes(s string) string

TrimQuotes removes surrounding double quotes from a string, if present. Examples: `"10"` -> `10` and `10` -> `10`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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