templater

package
v0.0.0-...-0314968 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: BSD-2-Clause Imports: 7 Imported by: 0

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