Documentation ¶
Index ¶
- Variables
- func AppendToMap(gmap map[string]interface{}, mp map[string]string)
- func ConfigAs[T any](mapping map[string]any, key string) T
- func Contains[K comparable, V any](mp map[K]V, keys ...K) bool
- func ContainsString(s []string, v string) bool
- func ConvertToStringMap(inputs map[string]interface{}) (map[string]string, error)
- func CronIntervalValidator(val interface{}, _ string) error
- func FromEnumProto(typeProto, enumName string) string
- func IsPathOccupied(path string) (bool, error)
- func IsTerminal(f *os.File) bool
- func MapToList[V any](inputMap map[string]V) []V
- func MergeAnyMaps(maps ...map[string]interface{}) map[string]interface{}
- func MergeMaps(maps ...map[string]string) map[string]string
- func ToEnumProto(modelType, enumName string) string
- func ValidateCronInterval(val interface{}) error
- func WriteStringToFileIndexed() func(filePath, data string, writer io.Writer) error
- type VFactory
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidatorFactory = new(VFactory)
Functions ¶
func AppendToMap ¶
func Contains ¶
func Contains[K comparable, V any](mp map[K]V, keys ...K) bool
func ContainsString ¶
ContainsString returns true if a string is present in string slice
func ConvertToStringMap ¶
func CronIntervalValidator ¶
CronIntervalValidator return a nil value when a valid cron string is passed used in gopkg.in/validator.v2
func FromEnumProto ¶
FromEnumProto converts models to Types defined in protobuf, TYPE_TASK -> task
func IsPathOccupied ¶
IsPathOccupied checks whether the targeted path is already occupied
func IsTerminal ¶
IsTerminal checks if file descriptor is terminal or not
func MergeAnyMaps ¶
func MergeMaps ¶
MergeMaps can merge values from multiple maps into one It can also create clone of a map
func ToEnumProto ¶
ToEnumProto converts models to Types defined in protobuf, task -> TYPE_TASK
func ValidateCronInterval ¶
func ValidateCronInterval(val interface{}) error
ValidateCronInterval return a nil value when a valid cron string is passed
Types ¶
Click to show internal directories.
Click to hide internal directories.