assets

package
v0.0.0-...-c490ea4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package assets incorporates the given static assets into the compiled code.

Index

Constants

This section is empty.

Variables

View Source
var AssetPath string

AssetPath is a developer flag to load asset data from disk instead of using a built-in map.

Functions

This section is empty.

Types

type Asset

type Asset interface {
	http.File
	ContentType() string
}

An Asset represents a static file asset to serve to a client.

func Get

func Get(path string) (Asset, error)

Get returns the requested asset, or os.ErrNotExist if it does not exist.

Jump to

Keyboard shortcuts

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