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

helpers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONMerge

func JSONMerge(base, patch json.RawMessage) (json.RawMessage, error)

JSONMerge merges two JSON-encoded objects. Fields from patch override fields in base. Both arguments must be valid JSON objects (or nil/null).

func MarshalForm

func MarshalForm(body interface{}) (url.Values, error)

MarshalForm marshals a struct into url.Values using the struct's json tags as field names. It handles nested structs, slices, pointers, and AdditionalProperties maps.

Types

This section is empty.

Jump to

Keyboard shortcuts

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