assets

package
Version: v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() http.FileSystem

Load initializes the static files.

func ReadSource

func ReadSource(origPath string) (content []byte, err error)

ReadSource is adapTed from ioutil

func ViewHandler

func ViewHandler() gin.HandlerFunc

ViewHandler support dist handler from UI

Types

type ChainedFS

type ChainedFS struct {
}

ChainedFS is a simple HTTP filesystem including custom path.

func (ChainedFS) Open

func (c ChainedFS) Open(origPath string) (http.File, error)

Open just implements the HTTP filesystem interface.

Jump to

Keyboard shortcuts

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