Documentation ¶
Index ¶
- Variables
- func Add(a, b interface{}) (int64, error)
- func Asset(assetsHostname, url string) string
- func CamelCase(s string) string
- func ComponentParam(c *ComponentInstance, name string, value interface{}) string
- func DateFormat(t time.Time, lang, layout string) string
- func Development() bool
- func Dict(values ...interface{}) (map[string]interface{}, error)
- func Div(a, b int) int
- func EndComponent(c *ComponentInstance) (template.HTML, error)
- func Even(n int) bool
- func GenRange(n, start int64) []int64
- func GetVar(v *Var) interface{}
- func HasPrefix(s, prefix string) bool
- func Include(path string) (string, error)
- func JSON(obj interface{}) (string, error)
- func Join(chain []string, sep string) string
- func Last(index int, list interface{}) bool
- func Limit(max int, slice interface{}) interface{}
- func Madrid(value interface{}) (time.Time, error)
- func Mod(n, m int) int
- func Money(currency string, value int32) string
- func MsgFormat(lang, format string, params ...interface{}) (string, error)
- func Nl2Br(text string) template.HTML
- func NoSpaces(s string) string
- func Now() time.Time
- func Odd(n int) bool
- func Percentage(old, current int64) int64
- func Price(value int32) string
- func ProtoDateFormat(lang, layout string, t *pbdatetime.Date) string
- func RandID(prefix string) string
- func RandItem(slice interface{}) interface{}
- func Rev(url string) string
- func SafeCSS(s ...string) (template.CSS, error)
- func SafeHTML(s ...string) (template.HTML, error)
- func SafeJavascript(s ...string) (template.JS, error)
- func SafeURL(s ...string) (template.URL, error)
- func SetVar(v *Var, value interface{}) string
- func Shuffle(slice interface{}) interface{}
- func Slice(min, max int, slice interface{}) interface{}
- func Thumbnail(servingURL string, strFlags string) (string, error)
- func TimeFormat(layout string, t time.Time) string
- func Times(a, b int64) int64
- func TimestampFormat(layout string, timestamp *pbtimestamp.Timestamp) string
- func Timezone(timezone string, t time.Time) (time.Time, error)
- func Translate(lang, format string) string
- func Trio(n int) bool
- func Vue(obj interface{}) (template.JS, error)
- type ComponentInstance
- type ComponentInstanceParam
- type Var
Constants ¶
This section is empty.
Variables ¶
View Source
var EuropeMadrid *time.Location
Functions ¶
func ComponentParam ¶
func ComponentParam(c *ComponentInstance, name string, value interface{}) string
func Development ¶
func Development() bool
func EndComponent ¶
func EndComponent(c *ComponentInstance) (template.HTML, error)
func Percentage ¶
func ProtoDateFormat ¶
func ProtoDateFormat(lang, layout string, t *pbdatetime.Date) string
func TimestampFormat ¶
func TimestampFormat(layout string, timestamp *pbtimestamp.Timestamp) string
Types ¶
type ComponentInstance ¶
type ComponentInstance struct {
// contains filtered or unexported fields
}
func Component ¶
func Component(name string) *ComponentInstance
type ComponentInstanceParam ¶
type ComponentInstanceParam struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.