util

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToString

func BytesToString(b []byte) string

func DecodeTo added in v0.4.0

func DecodeTo(from any, to any) error

func Diff added in v0.5.0

func Diff[X any](left *X, right *X) (map[string]any, error)

func DiffObj added in v0.5.0

func DiffObj(left objx.Map, right objx.Map) map[string]any

func Merge added in v0.4.0

func Merge[X any](from *X, overwrites *X) (*X, error)

func MergeObj added in v0.5.0

func MergeObj(from objx.Map, patch objx.Map) objx.Map

func StringToBytes

func StringToBytes(s string) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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