general

package
v1.0.40 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertCurrencyToFloat64 added in v1.0.6

func ConvertCurrencyToFloat64(price int64) float64

ConvertCurrencyToFloat64 convert price int64 to float64

func ConvertIntInterfaceToString

func ConvertIntInterfaceToString(value interface{}) (string, error)

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

func ConvertToCurrency(price int64) string

ConvertToCurrency convert price int64 to string with decimal values

func EncodeToLatin1 added in v1.0.5

func EncodeToLatin1(utf8Text string) string

EncodeToLatin1 encode utf8 to ISO8859_9 (latin)

func EncodeToUtf8 added in v1.0.5

func EncodeToUtf8(latin1Text string) string

EncodeToUtf8 encode ISO8859_9 (latin) to utf8

func FormatDateTimeByLanguage added in v1.0.5

func FormatDateTimeByLanguage(value, language string) (string, string)

FormatDateTimeByLanguage formats dates based on provided language

func InArray

func InArray(value interface{}, array interface{}) (bool, int)

InArray checks if a certain value exists inside the slice/array

func ReadConfigJson

func ReadConfigJson(configStruct interface{}, filePath string) error

ReadConfigJson Reads Settings file.

func RemoveAccentuation added in v1.0.5

func RemoveAccentuation(s string) string

RemoveAccentuation removes any accentuation from a string

func RemoveDuplicate

func RemoveDuplicate(slice []string, verbose bool) []string

RemoveDuplicate remove duplicate entry in string array

func ReplaceGender added in v1.0.5

func ReplaceGender(gender, username, text string) string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL