parser

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const WantedImport = `"github.com/leonelquinteros/gotext"`

Variables

View Source
var PotHeader string

Functions

This section is empty.

Types

type File

type File struct {
	Translations []Translation
	// contains filtered or unexported fields
}

func NewFile

func NewFile(path string) (*File, error)

func (*File) ParseTranslations

func (f *File) ParseTranslations()

type Location

type Location struct {
	Line int
	File string
}

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser(path string) (p *Parser, err error)

func (*Parser) Compile

func (p *Parser) Compile() []byte

func (*Parser) Parse

func (p *Parser) Parse()

type Translation

type Translation struct {
	ID        string
	Context   string
	Plural    string
	Locations []Location
}

func (Translation) String

func (t Translation) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL