Documentation ¶
Index ¶
- func Bod(t time.Time) time.Time
- func BubbleSortDesc(arr []string) []string
- func CheckDBErr(err error, db string)
- func Comma(v int64) string
- func Commaf(v float64) string
- func ConvertToFloat(s string) float64
- func CurrencySymbol(country, currency string) string
- func DaysIn(m time.Month, year int) int
- func DenyAccess(w http.ResponseWriter, data string)
- func DownloadAndSaveFile(filepath string, url string) error
- func Eod(t time.Time) time.Time
- func FormatDateWithSuffix(t time.Time) string
- func FormatFloat(num float64) string
- func GetDaysInMonth(month string, year int) int
- func GetExchangeRateFor(currency string, toCurrency string, apiKey string) float64
- func GetExchangeRates(currency string, fallback float64, apiKey string) float64
- func GetMonthFromName(month string) time.Month
- func GetRealAddr(r *http.Request) string
- func GetRoad(lat, long, apiKey string) string
- func IntArrayToString(A []int, delim string) string
- func Interface(f interface{}) string
- func JsonPrettyPrint(in string) string
- func Mode(mode []string) string
- func MonthInSlice(a interface{}, list []time.Month) bool
- func OpenFile(path string) (file io.ReadWriteCloser, err error)
- func ParseCSVFile(fileName string) *os.File
- func PrintEmoji(emoji string, emojiMap map[string]string) string
- func ProperlyFormatDate(date string, headerMap map[string]interface{}) (string, error)
- func RedirectToHome(w http.ResponseWriter, req *http.Request)
- func RemoveDuplicates(elements []string) []string
- func ReverseList(reversed []interface{}) []interface{}
- func SendHTTPError(reason string, rw http.ResponseWriter)
- func String(n int) string
- func StringInSlice(a string, list []string) bool
- func TrimCompletelyAfter(s, remover string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BubbleSortDesc ¶
func CheckDBErr ¶
func ConvertToFloat ¶
func CurrencySymbol ¶
func DenyAccess ¶
func DenyAccess(w http.ResponseWriter, data string)
func DownloadAndSaveFile ¶
func FormatDateWithSuffix ¶
func FormatFloat ¶
func GetDaysInMonth ¶
func GetExchangeRateFor ¶
func GetExchangeRates ¶
func GetMonthFromName ¶
func GetRealAddr ¶
func IntArrayToString ¶
func JsonPrettyPrint ¶
func MonthInSlice ¶
func ParseCSVFile ¶
func ProperlyFormatDate ¶
func RedirectToHome ¶
func RedirectToHome(w http.ResponseWriter, req *http.Request)
func RemoveDuplicates ¶
func ReverseList ¶
func ReverseList(reversed []interface{}) []interface{}
func SendHTTPError ¶
func SendHTTPError(reason string, rw http.ResponseWriter)
func StringInSlice ¶
func TrimCompletelyAfter ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.