Documentation ¶
Index ¶
- Constants
- func Base64Decoe(str string) string
- func Base64Encode(str string) string
- func FormatPhoneNumber(phoneNumber int) string
- func GetMapKeys(m map[string]interface{}) []string
- func GetType(myvar interface{}) string
- func IntArrayToString(A []int, delim string) string
- func IsPreferredLanguageSupported(preferredLanguageTags []string, supportedLanguageTags SupportedLanguages) (int, language.Tag)
- func IsValidPhoneNumber(phoneNumber string) bool
- func Normalize(str string) string
- func Now() time.Time
- func NowUTC() time.Time
- func RawPhoneNumber(phoneNumber string) (int, error)
- func SHA256String(s string) string
- func StrAt(slice []string, str string) int
- func StrToBytes(str string) []byte
- func StringInSlice(str string, list []string) bool
- func StripAll(str string, charactersToStrip []string) string
- func TimeString(t time.Time) string
- type Cqueue
- func (q *Cqueue) Back() interface{}
- func (q *Cqueue) Dequeue(v interface{})
- func (q *Cqueue) Enqueue(v interface{})
- func (q *Cqueue) Front() interface{}
- func (q *Cqueue) Init() *Cqueue
- func (q *Cqueue) Len() int
- func (q *Cqueue) Pop(v interface{})
- func (q *Cqueue) Push(v interface{})
- func (q *Cqueue) String() string
- type SupportedLanguages
Constants ¶
View Source
const DefaultLanguage = "en"
Variables ¶
This section is empty.
Functions ¶
func Base64Decoe ¶
func Base64Encode ¶
func FormatPhoneNumber ¶
func GetMapKeys ¶
func IntArrayToString ¶
func IsPreferredLanguageSupported ¶
func IsPreferredLanguageSupported(preferredLanguageTags []string, supportedLanguageTags SupportedLanguages) (int, language.Tag)
func IsValidPhoneNumber ¶
func RawPhoneNumber ¶
func SHA256String ¶
func StrToBytes ¶
func StringInSlice ¶
func TimeString ¶
Types ¶
type Cqueue ¶
type Cqueue struct {
// contains filtered or unexported fields
}
Cqueue dataresents a double-ended Cqueue. The zero value is an empty Cqueue ready to use.
func (*Cqueue) Back ¶
func (q *Cqueue) Back() interface{}
Back returns the last element of Cqueue q or nil.
type SupportedLanguages ¶
type SupportedLanguages []string
Click to show internal directories.
Click to hide internal directories.