public

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2017 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHash

func GetHash(reload bool) string

GetHash returns the hash of the built assets

func LoadStats

func LoadStats(d string) error

LoadStats loads the Assets variable

func StaticHandler

func StaticHandler(c *echo.Context) error

StaticHandler serves static files

Types

type AssetsWrapper

type AssetsWrapper struct {
	Hash string
}

AssetsWrapper is a wrapper for static assets

var Assets AssetsWrapper

Assets is the variable that stores assets

type Stats

type Stats struct {
	BuildDir string
	Hash     string `json:"hash"`
}

Stats is the json object for webpack stats

Jump to

Keyboard shortcuts

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