Versions in this module Expand all Collapse all v0 v0.6.0 Dec 20, 2023 Changes in this version + const INTERPOLATED_STRING_REGEXP + const TEMPLATED_STRING_REGEXP + var BLANKS = []string + func CheckFile(fileName string) (string, string, error) + func ConvertToTemplatedString(aString string) string + func CopyFileContents(src, dst string) error + func CopyI18nStringInfoMap(i18nStringInfoMap map[string]I18nStringInfo) map[string]I18nStringInfo + func CreateI18nStringInfoMap(i18nStringInfos []I18nStringInfo) (map[string]I18nStringInfo, error) + func CreateOutputDirsIfNeeded(outputDirname string) error + func CreateTmpFile(content string) (*os.File, error) + func FindFilePath(filename string) (string, error) + func GetAbsFileInfo(fileNamePath string) (os.FileInfo, error) + func GetIgnoreRegexp(ignoreRegexp string) (compiledRegexp *regexp.Regexp) + func GetTemplatedStringArgs(aString string) []string + func ImportsForASTFile(astFile *ast.File) (*ast.GenDecl, error) + func IsInterpolatedString(aString string) bool + func IsTemplatedString(aString string) bool + func ParseStringList(stringList string, delimiter string) []string + func SaveI18nStringInfos(printer PrinterInterface, options Options, i18nStringInfos []I18nStringInfo, ...) error + func SaveI18nStringsInPo(printer PrinterInterface, options Options, i18nStrings []I18nStringInfo, ...) error + func SaveStrings(printer PrinterInterface, options Options, stringInfos map[string]StringInfo, ...) error + func SaveStringsInPo(printer PrinterInterface, options Options, stringInfos map[string]StringInfo, ...) error + func UnescapeHTML(byteArray []byte) []byte + type ExcludedStrings struct + ExcludedRegexps []string + ExcludedStrings []string + type I18nStringInfo struct + ID string + Translation string + func I18nStringInfoMapValues2Array(i18nStringInfosMap map[string]I18nStringInfo) []I18nStringInfo + func LoadI18nStringInfos(fileName string) ([]I18nStringInfo, error) + type Options struct + CommandFlag string + DirnameFlag string + DryRunFlag bool + ExcludedFilenameFlag string + FilenameFlag string + GoogleTranslateApiKeyFlag string + HelpFlag bool + I18nStringsDirnameFlag string + I18nStringsFilenameFlag string + IgnoreRegexpFlag string + InitCodeSnippetFilenameFlag string + LanguageFilesFlag string + LanguagesFlag string + LongHelpFlag bool + MetaFlag bool + OutputDirFlag string + OutputFlatFlag bool + OutputMatchImportFlag bool + OutputMatchPackageFlag bool + PoFlag bool + QualifierFlag string + RecurseFlag bool + RootPathFlag string + SourceLanguageFlag string + SubstringFilenameFlag string + VerboseFlag bool + type PrinterInterface interface + Printf func(msg string, a ...interface{}) (int, error) + Println func(a ...interface{}) (int, error) + type StringInfo struct + Column int + Filename string + Line int + Offset int + Value string