po

package
v0.0.0-...-9682600 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2017 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmarshal

func Unmarshal(data []byte, f *File) error

Unmarshal uses a Reader to read raw gettext data (.po .pot) and puts into a structured File

Types

type File

type File struct {
	Metadata Meta
	Entries  map[string]string
	Context  map[string]map[string]string
}

type Meta

type Meta map[string]string

func (Meta) Del

func (m Meta) Del(key string)

func (Meta) Get

func (m Meta) Get(key string) string

func (Meta) Set

func (m Meta) Set(key, value string)

type Reader

type Reader struct {

	//
	Strict bool
	// contains filtered or unexported fields
}

func (*Reader) Decode

func (r *Reader) Decode(f *File) error

func (*Reader) Read

func (r *Reader) Read(p []byte) (n int, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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