Documentation
¶
Index ¶
- Variables
- func Add(i ...interface{}) int64
- func Add1(i interface{}) int64
- func AddressesEmpty(a, b anor.Address, c, d []anor.Address) bool
- func ContainsPath(path, target string) bool
- func CurrencySymbol(code string) string
- func Div(a, b interface{}) int64
- func Eqd0(a decimal.Decimal) bool
- func FormatAddress(address anor.Address) template.HTML
- func FormatDate(t time.Time) string
- func FormatDateTime(t time.Time) string
- func FormatHandle(handle string, id interface{}) string
- func FormatProductQty(count int) string
- func FormatTimeForJS(t time.Time) string
- func GenPageNums(currentPage, pageCount, maxPages int) []int
- func GetRootCategoryAlias(category string) string
- func HumanizeNum(num interface{}) string
- func InjectCategoryIntoSiblings(c anor.Category, siblings []anor.Category) []anor.Category
- func IsBrandChecked(brand string, brands []string) bool
- func IterateInt32(max int32) []int32
- func Jsonify(data interface{}) template.JS
- func Mod(a, b interface{}) int64
- func ModifyImgURL(url string, resolution int) string
- func Mul(a, b interface{}) int64
- func Muld(a decimal.Decimal, b int32) decimal.Decimal
- func Ned(a, b decimal.Decimal) bool
- func Pluralize(n int, word string) string
- func SplitMap(m map[string]string) struct{ ... }
- func StepperClass(i, curr int) string
- func Sub(a, b interface{}) int64
- func Sub1(i interface{}) int64
- func Subd(a, b decimal.Decimal) decimal.Decimal
Constants ¶
This section is empty.
Variables ¶
View Source
var FuncMap = map[string]interface{}{ "add": Add, "add1": Add1, "sub": Sub, "sub1": Sub1, "subd": Subd, "ned": Ned, "div": Div, "mul": Mul, "muld": Muld, "mod": Mod, "eqd0": Eqd0, "iterate": IterateInt32, "jsonify": Jsonify, "currencySymbol": CurrencySymbol, "humanizeNum": HumanizeNum, "pluralize": Pluralize, "splitMap": SplitMap, "modifyImgURL": ModifyImgURL, "genPageNums": GenPageNums, "formatHandle": FormatHandle, "injectCategoryIntoSiblings": InjectCategoryIntoSiblings, "isBrandChecked": IsBrandChecked, "formatProductQty": FormatProductQty, "getRootCategoryAlias": GetRootCategoryAlias, "formatAddress": FormatAddress, "stepperClass": StepperClass, "addressesEmpty": AddressesEmpty, "formatDate": FormatDate, "formatDateTime": FormatDateTime, "formatTimeForJS": FormatTimeForJS, "containsPath": ContainsPath, }
Functions ¶
func ContainsPath ¶
func CurrencySymbol ¶
func FormatDate ¶
FormatDate formats a time.Time value for date-only display
func FormatDateTime ¶
FormatDateTime formats a time.Time value for general date and time display
func FormatHandle ¶
func FormatProductQty ¶
func FormatTimeForJS ¶
FormatTimeForJS formats a time.Time value for JavaScript parsing
func GenPageNums ¶
func GetRootCategoryAlias ¶
func HumanizeNum ¶
func HumanizeNum(num interface{}) string
func IsBrandChecked ¶
func IterateInt32 ¶
func ModifyImgURL ¶
func StepperClass ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.