package embed

import "github.com/markbates/pkger/pkging/embed"

Index

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
}

Source Files

embed.go file.go

Version
v0.3.2
Published
Oct 22, 2019
Platform
js/wasm
Imports
6 packages
Last checked
9 hours ago

Tools for package owners.