templater

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: BSD-2-Clause Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConcatenateWords

func ConcatenateWords(words []interface{}, conjunction string) string

func Duration

func Duration(seconds float64) string

func EscapeSlackText

func EscapeSlackText(text string) string

func Plural

func Plural(quantity float64, singular, plural string) string

func PluralWord

func PluralWord(quantity float64, singular, plural string) string

func TruncateQuantity

func TruncateQuantity(quantity float64) string

Types

type Go

type Go struct{}

func (*Go) Execute

func (*Go) Execute(pattern string, params interface{}) ([]byte, error)

type Mustache

type Mustache struct{}

func (*Mustache) Execute

func (*Mustache) Execute(pattern string, params interface{}) ([]byte, error)

Jump to

Keyboard shortcuts

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