Documentation ¶
Index ¶
- Variables
- func AnyToString(i any) string
- func CheckPassword(providedPassword, existingPassword string) (bool, string, error)
- func ConvertFloat64ToStr(floatValue float64, precision int) string
- func ConvertInt64ToStr(intValue int64) string
- func ConvertStrToFloat64(str string) float64
- func ConvertStrToInt64(str string) int64
- func GetFieldValue[T any](t *T, field string) interface{}
- func GetFromByteArray(b []byte) (*gabs.Container, error)
- func GetIncomingCase(r *http.Request) (*gabs.Container, error)
- func GetIncomingCaseRoot(r *http.Request, shouldLog bool) (*gabs.Container, error)
- func GetRootJsonObjectPreCreated(dynamicPropertyByteArray []byte) *gabs.Container
- func GetType(i interface{}) string
- func HasField[T any](fieldName string) bool
- func HasField_CaseInsensitive[T any](fieldName string) bool
- func HashPassword(password string) (string, error)
- func Initialize()
- func InterfaceToString(i interface{}) string
- func IsGreaterThan[T Number](value, expected T) bool
- func IsGreaterThanOrEqualTo[T Number](value, expected T) bool
- func IsLessThan[T Number](value, expected T) bool
- func IsLessThanOrEqualTo[T Number](value, expected T) bool
- func IsNullOrEmpty(i interface{}) bool
- func IsPasswordHashed(password string) bool
- func ParseDynamic(r *http.Request) (interface{}, error)
- func ParseIncoming(r *http.Request) (interface{}, error)
- func ParseIncomingDataAndItsDynamicProperty(r *http.Request) (interface{}, interface{}, string, error)
- func ParseIncomingIntoGabsRoot(r *http.Request) (*gabs.Container, error)
- func ReInitializeLoggingWithFileSyncEnabled()
- func SafeGet(jsonString string, selector string) interface{}
- func SafeGetFromInterface(i interface{}, selector string) interface{}
- func SafeGetFromInterfaceErrorCaught(i interface{}, selector string) (interface{}, error)
- func SafeGetFromInterfaceGeneric[t any](i interface{}, selector string) any
- func SafeGetFromInterfaceGenericAndDeserialize[T any](i interface{}, selector string) T
- func SafeGetMarshalled(jsonString string, selector string) []byte
- func SafeGetToString(jsonString string, selector string) string
- func SaveEncryptedConfig(encryptedConfig string)
- func StringContains(str, containedSubStr string) bool
- func ToCamelCase(s string) string
- func ToCamelCaseLower(s string) string
- func ToSnakeCase(s string) string
- type Number
- type ValidationsCheck
Constants ¶
This section is empty.
Variables ¶
var Logger *zap.Logger
var ShouldLogToFile = false
Functions ¶
func AnyToString ¶ added in v0.1.4
func CheckPassword ¶ added in v0.2.6
func ConvertFloat64ToStr ¶ added in v0.1.5
func ConvertInt64ToStr ¶ added in v0.1.5
func ConvertStrToFloat64 ¶ added in v0.1.5
func ConvertStrToInt64 ¶ added in v0.1.5
func GetFieldValue ¶ added in v0.2.1
GetFieldValue returns the value of the specified field/property of the struct t
func GetIncomingCase ¶ added in v0.1.3
func GetIncomingCaseRoot ¶ added in v0.1.3
func GetRootJsonObjectPreCreated ¶ added in v0.1.3
func HasField ¶
HasField returns true if the struct [T] has the field specified by `fieldName`. This is a case sensitive test
func HasField_CaseInsensitive ¶ added in v0.2.1
HasField_CaseInsensitive returns true if the struct [T] has the field specified by `fieldName`. This is a case insensitive test
func HashPassword ¶ added in v0.2.6
func Initialize ¶ added in v0.1.3
func Initialize()
func InterfaceToString ¶ added in v0.1.4
func InterfaceToString(i interface{}) string
func IsGreaterThan ¶ added in v0.1.6
IsGreaterThan returns true if `value` is greater than `expected`
func IsGreaterThanOrEqualTo ¶ added in v0.1.6
IsGreaterThanOrEqualTo returns true if `value` is greater than or equal to `expected`
func IsLessThan ¶ added in v0.1.6
IsLessThan returns true if `value` is less than `expected`
func IsLessThanOrEqualTo ¶ added in v0.1.6
IsLessThanOrEqualTo returns true if `value` is less than or equal to `expected`
func IsNullOrEmpty ¶ added in v0.1.3
func IsNullOrEmpty(i interface{}) bool
func IsPasswordHashed ¶ added in v0.2.6
func ParseDynamic ¶ added in v0.1.3
func ParseIncoming ¶ added in v0.1.3
ParseIncoming sets the root property as "data"
func ParseIncomingDataAndItsDynamicProperty ¶ added in v0.1.3
func ParseIncomingDataAndItsDynamicProperty(r *http.Request) (interface{}, interface{}, string, error)
ParseIncomingDataAndItsDynamicProperty returns incoming data, dynamicProperty and a loggable incoming data
func ParseIncomingIntoGabsRoot ¶ added in v0.1.3
func ReInitializeLoggingWithFileSyncEnabled ¶ added in v0.2.5
func ReInitializeLoggingWithFileSyncEnabled()
func SafeGetFromInterface ¶ added in v0.1.4
func SafeGetFromInterface(i interface{}, selector string) interface{}
func SafeGetFromInterfaceErrorCaught ¶ added in v0.1.4
func SafeGetFromInterfaceGeneric ¶ added in v0.1.4
func SafeGetFromInterfaceGenericAndDeserialize ¶ added in v0.1.4
func SafeGetMarshalled ¶ added in v0.1.4
func SafeGetToString ¶ added in v0.1.4
func SaveEncryptedConfig ¶ added in v0.2.6
func SaveEncryptedConfig(encryptedConfig string)
SaveEncryptedConfig saves encrypted config to disk
func StringContains ¶ added in v0.1.6
StringContains returns true if `str` contains `containedSubStr`
func ToCamelCase ¶ added in v0.2.4
func ToCamelCaseLower ¶ added in v0.1.9
func ToSnakeCase ¶ added in v0.1.9
Types ¶
type ValidationsCheck ¶ added in v0.1.6
type ValidationsCheck struct {
Value interface{} `json:"value"`
}