Documentation ¶
Overview ¶
Package messages implements functions for extracting messages from source code files and compiling them to Go code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultTagFields ¶
func DefaultTagFields() []string
func DefaultTypes ¶
func DefaultTypes() []string
Types ¶
type CompileOptions ¶
type CompileOptions struct {
DefaultContext string
}
type ExtractOptions ¶
func DefaultExtractOptions ¶
func DefaultExtractOptions() *ExtractOptions
type Function ¶
type Function struct { // Qualified function name Name string // Wheter the function is a template function Template bool // Wheter the function has a context argument Context bool // Wheter the function has a plural form argument Plural bool // Position of the first translatable argument (0 indexed) Start int }
func DefaultFunctions ¶
func DefaultFunctions() []*Function
Source Files ¶
Click to show internal directories.
Click to hide internal directories.