export

package
v0.0.0-...-bb7c920 Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: MIT Imports: 11 Imported by: 1

Documentation

Overview

Package export handles the exporting of API data to common formats.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Android

type Android struct{}

func (*Android) Export

func (e *Android) Export(locale *model.Locale) ([]byte, error)

func (*Android) FileExtension

func (e *Android) FileExtension() string

type AppleStrings

type AppleStrings struct{}

func (*AppleStrings) Export

func (e *AppleStrings) Export(locale *model.Locale) ([]byte, error)

func (*AppleStrings) FileExtension

func (e *AppleStrings) FileExtension() string

type CSV

type CSV struct{}

func (*CSV) Export

func (e *CSV) Export(locale *model.Locale) ([]byte, error)

func (*CSV) FileExtension

func (e *CSV) FileExtension() string

type Exporter

type Exporter interface {
	FileExtension() string
	Export(*model.Locale) ([]byte, error)
}

Exporter specifies the interface that must be specified for every format.

type Gettext

type Gettext struct{}

func (*Gettext) Export

func (e *Gettext) Export(locale *model.Locale) ([]byte, error)

func (*Gettext) FileExtension

func (e *Gettext) FileExtension() string

type INI

type INI struct{}

func (*INI) Export

func (e *INI) Export(locale *model.Locale) ([]byte, error)

func (*INI) FileExtension

func (e *INI) FileExtension() string

type JSON

type JSON struct{}

func (*JSON) Export

func (e *JSON) Export(locale *model.Locale) ([]byte, error)

func (*JSON) FileExtension

func (e *JSON) FileExtension() string

type JavaProperties

type JavaProperties struct{}

func (*JavaProperties) Export

func (e *JavaProperties) Export(locale *model.Locale) ([]byte, error)

func (*JavaProperties) FileExtension

func (e *JavaProperties) FileExtension() string

type JavaXML

type JavaXML struct{}

func (*JavaXML) Export

func (e *JavaXML) Export(locale *model.Locale) ([]byte, error)

func (*JavaXML) FileExtension

func (e *JavaXML) FileExtension() string

type PHP

type PHP struct{}

func (*PHP) Export

func (e *PHP) Export(locale *model.Locale) ([]byte, error)

func (*PHP) FileExtension

func (e *PHP) FileExtension() string

type XLSX

type XLSX struct{}

func (*XLSX) Export

func (e *XLSX) Export(locale *model.Locale) ([]byte, error)

func (*XLSX) FileExtension

func (e *XLSX) FileExtension() string

type Yaml

type Yaml struct{}

func (*Yaml) Export

func (e *Yaml) Export(locale *model.Locale) ([]byte, error)

TODO: allow for non-nested style export. What about formats like excel and apple strings?

func (*Yaml) FileExtension

func (e *Yaml) FileExtension() string

Jump to

Keyboard shortcuts

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