jsonx

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromFile

func FromFile[T any](path string) (v T, err error)

func MarshalWithMetadataAsString

func MarshalWithMetadataAsString[V, M any](v V, metadata M) ([]byte, error)

MarshalWithMetadataAsString is useful when you want to add single arbitrary encodable metadata object to your other object as string. This also helps to avoid polluting your object with metadata. For example, BigQuery expects JSON fields to be strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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