utils

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeFormatYYYYMMDDHHMMSS = "20060102150405"
	TimeFormatYYYYMMDD       = "20060102"
	HttpContentType          = "application/x-www-form-urlencoded"
	HttpAcceptPublic         = "application/javascript, application/xml, application/json"
	HttpAcceptPrivate        = "application/json"
	XForm                    = "application/x-www-form-urlencoded"
	XmlContent               = "application/xml"
)

Variables

This section is empty.

Functions

func AppendAsString

func AppendAsString(args ...interface{}) string

func Float64ToString

func Float64ToString(f float64) string

func FloatToStr

func FloatToStr(value float64) string

func FormatDate

func FormatDate(date string) string

func GenerateInlineQR

func GenerateInlineQR(htmlBody, qrData string) ([]byte, string, error)

func GetCityTax

func GetCityTax(value float64) float64

func GetCityTaxWithoutVat

func GetCityTaxWithoutVat(value float64) float64

func GetValidFloat

func GetValidFloat(source interface{}) float64

func GetValidString

func GetValidString(source interface{}) string

func GetVat

func GetVat(value float64) float64

func GetVatWithCityTax

func GetVatWithCityTax(value float64) float64

func NumberPrecision

func NumberPrecision(value float64) float64

func StrToUint

func StrToUint(value string) (uint, error)

StrToUint String to Uint parser

Types

type API

type API struct {
	Url    string `json:"url"`
	Method string `json:"method"`
	IsAuth bool   `json:"isAuth"`
	DevUrl string `json:"dev_url"`
}

Jump to

Keyboard shortcuts

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