gocom

package module
v0.0.0-...-ef94755 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

README

gocom

Common Go Functions

Documentation

Index

Constants

View Source
const DefaultLanguage = "en"

Variables

This section is empty.

Functions

func Base64Decoe

func Base64Decoe(str string) string

func Base64Encode

func Base64Encode(str string) string

func FormatPhoneNumber

func FormatPhoneNumber(phoneNumber int) string

func GetMapKeys

func GetMapKeys(m map[string]interface{}) []string

func GetType

func GetType(myvar interface{}) string

func IntArrayToString

func IntArrayToString(A []int, delim string) string

func IsPreferredLanguageSupported

func IsPreferredLanguageSupported(preferredLanguageTags []string, supportedLanguageTags SupportedLanguages) (int, language.Tag)

func IsValidPhoneNumber

func IsValidPhoneNumber(phoneNumber string) bool

func Normalize

func Normalize(str string) string

func Now

func Now() time.Time

func NowUTC

func NowUTC() time.Time

func RawPhoneNumber

func RawPhoneNumber(phoneNumber string) (int, error)

func SHA256String

func SHA256String(s string) string

func StrAt

func StrAt(slice []string, str string) int

func StrToBytes

func StrToBytes(str string) []byte

func StringInSlice

func StringInSlice(str string, list []string) bool

func StripAll

func StripAll(str string, charactersToStrip []string) string

func TimeString

func TimeString(t time.Time) string

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 New

func New() *Cqueue

New returns an initialized empty CCqueue.

func (*Cqueue) Back

func (q *Cqueue) Back() interface{}

Back returns the last element of Cqueue q or nil.

func (*Cqueue) Dequeue

func (q *Cqueue) Dequeue(v interface{})

func (*Cqueue) Enqueue

func (q *Cqueue) Enqueue(v interface{})

func (*Cqueue) Front

func (q *Cqueue) Front() interface{}

Front returns the first element of Cqueue q or nil.

func (*Cqueue) Init

func (q *Cqueue) Init() *Cqueue

Init initializes or clears Cqueue q.

func (*Cqueue) Len

func (q *Cqueue) Len() int

Len returns the number of elements of Cqueue q.

func (*Cqueue) Pop

func (q *Cqueue) Pop(v interface{})

func (*Cqueue) Push

func (q *Cqueue) Push(v interface{})

func (*Cqueue) String

func (q *Cqueue) String() string

String returns a string dataresentation of Cqueue q formatted from front to back.

type SupportedLanguages

type SupportedLanguages []string

Jump to

Keyboard shortcuts

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