Documentation
¶
Index ¶
- Constants
- Variables
- func NewCheckupCommand(options *common.Options) *cobra.Command
- func NewCreateTranslations(options *common.Options) *createTranslations
- func NewCreateTranslationsCommand(options *common.Options) *cobra.Command
- func NewExtractStrings(options *common.Options) *extractStrings
- func NewExtractStringsCommand(options *common.Options) *cobra.Command
- func NewFixup(options *common.Options) *fixup
- func NewFixupCommand(options *common.Options) *cobra.Command
- func NewMergeStrings(options *common.Options) *mergeStrings
- func NewMergeStringsCommand(options *common.Options) *cobra.Command
- func NewRewritePackage(options *common.Options) *rewritePackage
- func NewRewritePackageCommand(options *common.Options) *cobra.Command
- func NewShowMissingStrings(options *common.Options) *showMissingStrings
- func NewShowMissingStringsCommand(options *common.Options) *cobra.Command
- func NewVerifyStrings(options *common.Options) *verifyStrings
- func NewVerifyStringsCommand(options *common.Options) *cobra.Command
- func NewVersionCommand(p *I18NParams) *cobra.Command
- type CaptureGroupSubstrings
- type Checkup
- type CommandInterface
- type GoogleTranslateData
- type GoogleTranslateTranslation
- type GoogleTranslateTranslations
- type I18NParams
Constants ¶
const (
INIT_CODE_SNIPPET = `` /* 203-byte string literal not displayed */
)
Variables ¶
var BuildDate string
var GitRevision string
var Version string
Functions ¶
func NewCheckupCommand ¶ added in v0.5.0
NewCheckupCommand implements 'i18n4go checkup' command
func NewCreateTranslations ¶
func NewCreateTranslationsCommand ¶ added in v0.5.0
NewCreateTranslationsCommand implements 'i18n4go create-translations' command
func NewExtractStrings ¶
func NewExtractStringsCommand ¶ added in v0.5.0
NewExtractStringsCommand implements 'i18n extract-strings' command
func NewFixupCommand ¶ added in v0.5.0
NewFixupCommand implements 'i18n fixup' command
func NewMergeStrings ¶
func NewMergeStringsCommand ¶ added in v0.5.0
NewMergeStringsCommand implements 'i18n4go merge-strings' command
func NewRewritePackage ¶
func NewRewritePackageCommand ¶ added in v0.5.0
NewRewritePackageCommand implements 'i18n4go rewrite-package' command
func NewShowMissingStrings ¶
func NewShowMissingStringsCommand ¶ added in v0.5.0
NewShowMissingStringsCommand implements 'i18n show-missing-strings' command
func NewVerifyStrings ¶
func NewVerifyStringsCommand ¶ added in v0.5.0
NewVerifyStringsCommand implements 'i18n4go verify-strings' command
func NewVersionCommand ¶ added in v0.5.0
func NewVersionCommand(p *I18NParams) *cobra.Command
NewVersionCommand implements 'i18n version' command
Types ¶
type CaptureGroupSubstrings ¶ added in v0.2.6
type CaptureGroupSubstrings struct {
RegexpsStrings []string `json:"captureGroupSubstrings"`
}
type Checkup ¶
type Checkup struct { I18nStringInfos []common.I18nStringInfo IgnoreRegexp *regexp.Regexp // contains filtered or unexported fields }
func NewCheckup ¶
type CommandInterface ¶
type CommandInterface interface { common.PrinterInterface Options() common.Options Run() error }
type GoogleTranslateData ¶
type GoogleTranslateData struct {
Data GoogleTranslateTranslations `json:"data"`
}
type GoogleTranslateTranslations ¶
type GoogleTranslateTranslations struct {
Translations []GoogleTranslateTranslation `json:"translations"`
}
type I18NParams ¶ added in v0.5.0
I18NParams for creating commands. Useful for inserting mocks for testing and to have common parameters across commands.