utils

package
v1.25.12 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 8 Imported by: 843

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual added in v0.2.19

func AssertEqual(x, y interface{}) bool

func CheckTruth

func CheckTruth(vals ...string) bool

CheckTruth check string true or not

func Contains added in v1.22.1

func Contains(elems []string, elem string) bool

func FileWithLineNum

func FileWithLineNum() string

FileWithLineNum return the file name and line number of the current file

func IsValidDBNameChar added in v0.2.38

func IsValidDBNameChar(c rune) bool

func JoinNestedRelationNames added in v1.25.0

func JoinNestedRelationNames(relationNames []string) string

JoinNestedRelationNames nested relationships like `Manager__Company`

func NestedRelationName added in v1.25.0

func NestedRelationName(prefix, name string) string

NestedRelationName nested relationships like `Manager__Company`

func RTrimSlice added in v1.25.12

func RTrimSlice[T any](v []T, trimLen int) []T

RTrimSlice Right trims the given slice by given length

func SplitNestedRelationName added in v1.25.0

func SplitNestedRelationName(name string) []string

SplitNestedRelationName Split nested relationships to `[]string{"Manager","Company"}`

func ToString added in v1.20.1

func ToString(value interface{}) string

func ToStringKey

func ToStringKey(values ...interface{}) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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