asset

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2019 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset interface {
	List() ([]Asset, error)
	Bytes() []byte // return file bytes
	Name() string  // return file serve name
	http.File      // implement http.FileSystem
	Template() *template.Template
}

type Assets

type Assets interface {
	List() []Asset // return all files
	Asset(name string) (Asset, error)
	ServeHTTP(w http.ResponseWriter, r *http.Request) // implement http.FileServer
}
var Data Assets

Jump to

Keyboard shortcuts

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