Documentation ¶
Index ¶
- func CheckStruct(payload interface{}) (err error)
- func ContainsSliceString(s []string, str string) bool
- func ConvertIsoDateFormat(p string) (result string, err error)
- func CreateKeyValuePairs(m map[string]string) string
- func ExpectedInt(v interface{}) int
- func ExpectedInt64(v interface{}) int64
- func ExpectedString(v interface{}) string
- func FloatToString(f float64) string
- func FormatGender(gender int) string
- func FormatInfoText(actionName, orderNumber, status, updatedBy string) string
- func FormatRupiah(amount int) string
- func IsSourceJdsport(source string) bool
- func IsSourceJdsportKiosk(source string) bool
- func IsSourcePaymentLink(source string) bool
- func IsValidSource(source string) bool
- func MustGetEnv(key string) string
- func SanitizeSpecialChar(word string) string
- func SourceToStoreCodeCCM(source string) (storeCode string)
- func ValidateDateFormat(p string) (result string, err error)
- func ValidateStruct(payload interface{}, payloadMessageError map[string]string) (errMessage map[string]string)
- func ValidateStructWithError(payload interface{}, payloadMessageError map[string]string) (errMessage map[string]string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckStruct ¶
func CheckStruct(payload interface{}) (err error)
func ContainsSliceString ¶ added in v1.2.0
func ConvertIsoDateFormat ¶ added in v1.2.0
func CreateKeyValuePairs ¶ added in v1.2.0
func ExpectedInt ¶ added in v1.2.0
func ExpectedInt(v interface{}) int
func ExpectedInt64 ¶ added in v1.2.0
func ExpectedInt64(v interface{}) int64
func ExpectedString ¶ added in v1.2.0
func ExpectedString(v interface{}) string
func FloatToString ¶ added in v1.2.0
func FormatGender ¶ added in v1.2.0
func FormatInfoText ¶ added in v1.2.0
func FormatRupiah ¶ added in v1.2.0
func IsSourceJdsport ¶ added in v1.3.0
func IsSourceJdsportKiosk ¶ added in v1.3.5
func IsSourcePaymentLink ¶ added in v1.3.1
func IsValidSource ¶ added in v1.3.6
func MustGetEnv ¶ added in v1.2.0
func SanitizeSpecialChar ¶ added in v1.2.0
func SourceToStoreCodeCCM ¶ added in v1.4.0
func ValidateDateFormat ¶ added in v1.2.0
func ValidateStruct ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.