Documentation ¶
Index ¶
- func ConvertCurrencyToFloat64(price int64) float64
- func ConvertIntInterfaceToString(value interface{}) (string, error)
- func ConvertInterfaceToInt64(value interface{}) int64
- func ConvertToCurrency(price int64) string
- func EncodeToLatin1(utf8Text string) string
- func EncodeToUtf8(latin1Text string) string
- func FormatDateTimeByLanguage(value, language string) (string, string)
- func InArray(value interface{}, array interface{}) (bool, int)
- func ReadConfigJson(configStruct interface{}, filePath string) error
- func RemoveAccentuation(s string) string
- func RemoveDuplicate(slice []string, verbose bool) []string
- func ReplaceGender(gender, username, text string) string
- func UserNeverSigned(subscribeDate interface{}) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertCurrencyToFloat64 ¶ added in v1.0.6
ConvertCurrencyToFloat64 convert price int64 to float64
func ConvertIntInterfaceToString ¶
ConvertIntInterfaceToString tries to convert an interface value to string
func ConvertInterfaceToInt64 ¶
func ConvertInterfaceToInt64(value interface{}) int64
ConvertInterfaceToInt64 converts an interface value to int64
func ConvertToCurrency ¶ added in v1.0.6
ConvertToCurrency convert price int64 to string with decimal values
func EncodeToLatin1 ¶ added in v1.0.5
EncodeToLatin1 encode utf8 to ISO8859_9 (latin)
func EncodeToUtf8 ¶ added in v1.0.5
EncodeToUtf8 encode ISO8859_9 (latin) to utf8
func FormatDateTimeByLanguage ¶ added in v1.0.5
FormatDateTimeByLanguage formats dates based on provided language
func ReadConfigJson ¶
ReadConfigJson Reads Settings file.
func RemoveAccentuation ¶ added in v1.0.5
RemoveAccentuation removes any accentuation from a string
func RemoveDuplicate ¶
RemoveDuplicate remove duplicate entry in string array
func ReplaceGender ¶ added in v1.0.5
ReplaceGender replace text infos to custom
func UserNeverSigned ¶ added in v1.0.5
func UserNeverSigned(subscribeDate interface{}) bool
UserNeverSigned return true if usu_assinante_datainicio contains a date
Types ¶
This section is empty.