utils

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64Decode

func Base64Decode(s string) (string, error)

func Base64Encode

func Base64Encode(s string) string

func IsBool

func IsBool(v interface{}) (bool, bool)

func IsSlice

func IsSlice[T any](v any) (bool, []T)

func Join

func Join(elems []string, sep string, prefix string, suffix string) string

func NewReflectObject

func NewReflectObject[T any](obj *T) reflectT

func StructToMap

func StructToMap(obj interface{}) (map[string]any, error)

func Unmarshal

func Unmarshal[T any](s string) (*T, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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