common

package
v1.0.56 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: Zlib Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Defined added in v1.0.54

func Defined(data interface{}, field string) bool

Defined checks if variable is defined in a struct

func Dict added in v1.0.54

func Dict(values ...interface{}) (map[string]interface{}, error)

Dict allows to send more than one variable into a template

func IsMap added in v1.0.54

func IsMap(o interface{}) bool

IsMap checks if some variable is a map

func IsNil

func IsNil(o interface{}) bool

func IsSlice added in v1.0.54

func IsSlice(o interface{}) bool

IsSlice checks if some variable is a slice

func RemoveDuplicateElement added in v1.0.53

func RemoveDuplicateElement[T EleType](values []T) []T

Types

type EleType added in v1.0.53

type EleType interface {
	string | int8 | int16 | int | int32 | int64 | float32 | float64 |
		uint8 | uint16 | uint | uint32 | uint64
}

Jump to

Keyboard shortcuts

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