gengo

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const TypePrefixCatalog = "catalog_"

Variables

View Source
var ErrUnsupportedArgName = errors.New("unsupported argument name")

Functions

func FileNameWithLocale added in v0.3.1

func FileNameWithLocale(t language.Tag, prefix, extension string) string

Types

type Message

type Message struct {
	ID        string
	TIK       string
	ICUMsg    string
	ICUTokens []icumsg.Token
}

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter added in v0.3.1

func NewWriter(tokiVersion string, scan *codeparse.Scan) *Writer

func (*Writer) WritePackageBundle

func (w *Writer) WritePackageBundle(
	writer io.Writer, packageName string, headTxtLines []string,
)

WritePackageBundle writes the main bundle Go file.

func (*Writer) WritePackageCatalog

func (w *Writer) WritePackageCatalog(
	writer io.Writer, locale language.Tag, packageName string, headTxtLines []string,
)

WritePackageCatalog writes a catalog Go file.

Jump to

Keyboard shortcuts

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