utils

package
v1.1.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJson

func GetJson[T any](jsonStr string) T

func GetJsonByPath added in v1.1.7

func GetJsonByPath(path string, data interface{}) (interface{}, bool)

func GetJsonSafe

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

func StringToArray

func StringToArray(sliceStr string) []string

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