utils

package
v0.0.0-...-57220e1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtoV

func AtoV(vars ...any) bool

func BuildGormQuery

func BuildGormQuery(ctx *context.Context, db *gorm.DB, queryParams url.Values) *gorm.DB

func ConvertXLSXToCSV

func ConvertXLSXToCSV(xlsxPath string, csvPath string) error

ConvertXLSXToCSV converts a given XLSX file to CSV

func FindStringSubmatch

func FindStringSubmatch(reg *regexp.Regexp, s string) map[string]string

func MatchGroupMap

func MatchGroupMap(reg *regexp.Regexp, match []string) map[string]string

MatchGroupMap converts the match string array into a map of group keys to group values

func Max

func Max[T constraints.Ordered](a, b T) T

Max returns the maximum of two values of any ordered type.

func Min

func Min[T constraints.Ordered](a, b T) T

Max returns the maximum of two values of any ordered type.

func PopQueryParam

func PopQueryParam[T string | []string](qp url.Values, key string) T

Types

This section is empty.

Jump to

Keyboard shortcuts

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