utils

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendOrder

func AppendOrder(acc, field, direction string) string

func AppendQuery

func AppendQuery(acc, query string) string

func ConvertToMap

func ConvertToMap(src any) (map[string]any, error)

func ConvertToMapAny added in v1.3.0

func ConvertToMapAny(src any) (map[string]any, error)

func ConvertToMapString added in v1.2.0

func ConvertToMapString(src any) (map[string]string, error)

func GetMapKeys added in v1.4.1

func GetMapKeys(inputMap map[string]interface{}) []string

func Keys

func Keys(m map[string]any) []string

func MapToBase64

func MapToBase64(src map[string]any) (string, error)

func ParseCursor

func ParseCursor(src string) (map[string]any, error)

func ReverseDirection

func ReverseDirection(direction string) string

func ReverseInequality

func ReverseInequality(inequality string) string

func SameKeys added in v1.4.1

func SameKeys(map1, map2 map[string]interface{}) bool

func ToPointer

func ToPointer[T any](value T) *T

Types

This section is empty.

Jump to

Keyboard shortcuts

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