Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FuncMap = template.FuncMap{ "L": language.MustParse, "T": trans, "t": trans, "i18n": trans, }
Functions ¶
func SetFallback ¶
Types ¶
type Extractor ¶
type Extractor struct {
// contains filtered or unexported fields
}
func NewExtractor ¶
type Message ¶
type Message struct {
ID string `json:"id"` // original message (singular or formatted)
Positions []string `json:"positions,omitempty"` // file:line:col where found
}
Message holds extracted message metadata.
type OutputJSON ¶
type OutputJSON struct {
Messages []*Message `json:"messages"`
}
OutputJSON is the top-level JSON structure we write (simple map by ID).
Click to show internal directories.
Click to hide internal directories.