utils

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 3 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 any) (bool, bool)

func IsFloat32 added in v1.2.0

func IsFloat32(v any) (bool, float32)

func IsFloat64 added in v1.2.0

func IsFloat64(v any) (bool, float64)

func IsInt added in v1.2.0

func IsInt(v any) (bool, int)

func IsInt8 added in v1.2.0

func IsInt8(v any) (bool, int8)

func IsInt16 added in v1.2.0

func IsInt16(v any) (bool, int16)

func IsInt32 added in v1.2.0

func IsInt32(v any) (bool, int32)

func IsInt64 added in v1.2.0

func IsInt64(v any) (bool, int64)

func IsSlice

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

func IsString added in v1.2.0

func IsString(v any) (bool, string)

func StructToJSON added in v1.2.0

func StructToJSON[T any](v T) string

func ToCamelCase added in v1.2.0

func ToCamelCase(s string) string

func ToPascalCase added in v1.2.0

func ToPascalCase(s string) string

func ToSnakeCase added in v1.2.0

func ToSnakeCase(s string) string

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