Documentation ¶
Index ¶
Constants ¶
View Source
const ( ExtractFormatPot = "pot" ExtractFormatJSON = "json" )
View Source
const ( SpreakPackagePath = "github.com/vorlif/spreak" SpreakLocalizePackagePath = SpreakPackagePath + "/localize" XSpreakPackagePath = SpreakPackagePath + "/xspreak" )
Variables ¶
This section is empty.
Functions ¶
func IsValidSpreakPackage ¶
func ShouldExtractPackage ¶
func ShouldScanPackage ¶
func ShouldScanStruct ¶
Types ¶
type Config ¶
type Config struct { IsVerbose bool CurrentDir string SourceDir string OutputDir string OutputFile string CommentPrefixes []string ExtractErrors bool ErrorContext string TemplatePatterns []string Keywords []*tmpl.Keyword DefaultDomain string WriteNoLocation bool WrapWidth int DontWrap bool OmitHeader bool CopyrightHolder string PackageName string BugsAddress string MaxDepth int Args []string Timeout time.Duration ExtractFormat string TmplIsMonolingual bool }
func NewDefault ¶
func NewDefault() *Config
Click to show internal directories.
Click to hide internal directories.