utils

package
v0.0.0-...-5779634 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseReader

func CloseReader(Body io.ReadCloser)

CloseReader - close reader after get request body

func FileClose

func FileClose(f *os.File)

FileClose - error-free file closing

func GetConfigPath

func GetConfigPath(filename string) (resultPath string)

GetConfigPath

func GetCountries

func GetCountries() map[string]string

GetCountries - get all available countries

func GetEmailProviders

func GetEmailProviders() map[string]struct{}

GetEmailProviders - return Email providers list

func GetEnvVariable

func GetEnvVariable(varName string) (value string)

func GetProviders

func GetProviders() map[string]struct{}

GetProviders - get available MMS and SMS providers

func GetVoiceCallProviders

func GetVoiceCallProviders() map[string]struct{}

GetVoiceCallProviders - get available VoiceCall providers

func IsInList

func IsInList[Base string | struct{}](search string, list map[string]Base) bool

IsInList - return whether value is in list.

func Keys

func Keys[Base string | struct{}](m map[string]Base) (keys []string)

Keys - return keys from any map

Types

This section is empty.

Jump to

Keyboard shortcuts

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