utils

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetByPath added in v1.2.0

func GetByPath(path string, data any) (any, bool)

func GetJson

func GetJson[T any](jsonStr string) T

func GetJsonSafe

func GetJsonSafe[T any](jsonStr string) (T, error)

func GetYml added in v1.2.0

func GetYml[T any](ymlStr string) T

func GetYmlSafe added in v1.2.0

func GetYmlSafe[T any](ymlStr string) (T, error)

func ToJson added in v1.1.7

func ToJson[T any](obj T) string

func ToJsonSafe added in v1.1.7

func ToJsonSafe[T any](obj T) (string, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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