package embed

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

Index

Functions

func Decode

func Decode(src []byte) ([]byte, error)

func Encode

func Encode(b []byte) ([]byte, error)

Types

type Data

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

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"`
}

Source Files

embed.go file.go

Version
v0.17.1 (latest)
Published
Aug 12, 2020
Platform
linux/amd64
Imports
6 packages
Last checked
2 days ago

Tools for package owners.