Documentation ¶
Overview ¶
Component helper functions
Index ¶
- func Contains(a []string, x string) bool
- func GetComponentID() string
- func RandString(length int) string
- func StringToDateTime(value string) (time.Time, error)
- func TemplateBuilder(name, tpl string, funcMap map[string]any, data any) (res string, err error)
- func ToBoolean(value interface{}, defValue bool) bool
- func ToFloat(value interface{}, defValue float64) float64
- func ToInteger(value interface{}, defValue int64) int64
- func ToString(value interface{}, defValue string) string
- type IM
- type SM
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetComponentID ¶
func GetComponentID() string
func RandString ¶
func StringToDateTime ¶
StringToDateTime - parse string to datetime
func TemplateBuilder ¶
Types ¶
type IM ¶
type IM = map[string]interface{}
IM is a map[string]interface{} type short alias
func SetIMValue ¶
SetIMValue - safe IM value setting
Click to show internal directories.
Click to hide internal directories.