utils

package
v0.0.0-...-c101990 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDynamicContainsFilter

func BuildDynamicContainsFilter(conditions map[string][]string) bson.M

func ExcludeParamsFromStruct

func ExcludeParamsFromStruct(data interface{}, params []string) (bson.M, error)

func FindRegexMatchEle

func FindRegexMatchEle(pattern string, s []string) string

finds and returns first element matching provided pattern returns empty str if no match found or any err occurs

func RemoveEmptyStrings

func RemoveEmptyStrings(slice []string) []string

func Split

func Split(s string, sep string) []string

removes empty string from slice after separating

Types

This section is empty.

Jump to

Keyboard shortcuts

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