embed

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: MIT Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Infos map[string]here.Info `json:"infos"`
	Files map[string]File      `json:"files"`
	Here  here.Info            `json:"here"`
}

func (*Data) MarshalEmbed

func (d *Data) MarshalEmbed() ([]byte, error)

func (*Data) UnmarshalEmbed

func (d *Data) UnmarshalEmbed(in []byte) error

type Embedder

type Embedder interface {
	MarshalEmbed() ([]byte, error)
}

type File

type File struct {
	Info   *pkging.FileInfo `json:"info"`
	Here   here.Info        `json:"her"`
	Path   here.Path        `json:"path"`
	Data   []byte           `json:"data"`
	Parent here.Path        `json:"parent"`
}

type Unembedder

type Unembedder interface {
	UnmarshalEmbed([]byte) error
}

Jump to

Keyboard shortcuts

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