porta

package
v3.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2018 License: MIT Imports: 8 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exporter

type Exporter struct {
	OutFile      string `desc:"output file" flag:"export-file"`
	OutputFormat string `desc:"output format, json/yaml" flag:"output o"`
}

func (Exporter) Export

func (exporter Exporter) Export(data model.Renderer) error

func (Exporter) ExporterActivated

func (exporter Exporter) ExporterActivated() bool

type Importable

type Importable interface {
	json.Unmarshaler
	yaml.Unmarshaler
}

type Importer

type Importer struct {
	InFile      string `flag:"import-file"`
	InputFormat string `flag:"input i" desc:"input format, json/yaml"`
}

func (Importer) Import

func (importer Importer) Import(obj Importable) error

func (Importer) ImportActivated

func (importer Importer) ImportActivated() bool

Jump to

Keyboard shortcuts

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