restore

package
v0.0.0-...-a4b6567 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: BSD-3-Clause Imports: 3 Imported by: 14

Documentation

Overview

Package restore provides the restore API that was previously embedded into the generated output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asset

func Asset(dir, name string, assetAndInfo AssetAndInfo) error

Asset restores an asset under the given directory

func Assets

func Assets(dir, name string, assetDir AssetDir, assetAndInfo AssetAndInfo) error

Assets restores an asset under the given directory recursively

Types

type AssetAndInfo

type AssetAndInfo func(name string) (data []byte, info os.FileInfo, err error)

AssetAndInfo represents the generated AssetAndInfo method.

type AssetDir

type AssetDir func(name string) (children []string, err error)

AssetDir represents the generated AssetDir method.

Jump to

Keyboard shortcuts

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