package internal

import "github.com/nicksnyder/go-i18n/v2/internal"

Index

Types

type Template

type Template struct {
	Src        string
	LeftDelim  string
	RightDelim string
	// contains filtered or unexported fields
}

Template stores the template for a string and a cached version of the parsed template if they are cacheable.

func (*Template) Execute

func (t *Template) Execute(parser template.Parser, data interface{}) (string, error)

Source Files

template.go

Directories

PathSynopsis
internal/pluralPackage plural provides support for pluralizing messages according to CLDR rules http://cldr.unicode.org/index/cldr-spec/plural-rules
internal/plural/codegen
Version
v2.4.1
Published
Oct 13, 2024
Platform
darwin/amd64
Imports
2 packages
Last checked
4 hours ago

Tools for package owners.