asset

package
v0.0.0-...-cbdf446 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Assets = assets.NewFileSystem(map[string][]string{"/": []string{"static"}, "/static": []string{"LICENSE.md"}, "/static/v112": []string{"blocks.json"}, "/static/v113": []string{"blocks.json"}}, map[string]*assets.File{
	"/static/LICENSE.md": &assets.File{
		Path:     "/static/LICENSE.md",
		FileMode: 0x1b6,
		Mtime:    time.Unix(1553697855, 1553697855209099100),
		Data:     []byte(_Assets52d7eaeefb1c8376436656230525a63631fad3cc),
	}, "/static/v112": &assets.File{
		Path:     "/static/v112",
		FileMode: 0x800001ff,
		Mtime:    time.Unix(1553697784, 1553697784356984300),
		Data:     nil,
	}, "/static/v112/blocks.json": &assets.File{
		Path:     "/static/v112/blocks.json",
		FileMode: 0x1b6,
		Mtime:    time.Unix(1553697943, 1553697943472391000),
		Data:     []byte(_Assetsada524eca45011d59168345317e77a72ab541eae),
	}, "/static/v113": &assets.File{
		Path:     "/static/v113",
		FileMode: 0x800001ff,
		Mtime:    time.Unix(1553697903, 1553697903130024800),
		Data:     nil,
	}, "/static/v113/blocks.json": &assets.File{
		Path:     "/static/v113/blocks.json",
		FileMode: 0x1b6,
		Mtime:    time.Unix(1553697903, 1553697903103886400),
		Data:     []byte(_Assetsfb77da93f791278b498d50cfaabe2ce0b999ee51),
	}, "/": &assets.File{
		Path:     "/",
		FileMode: 0x800001ff,
		Mtime:    time.Unix(1553836954, 1553836954609230800),
		Data:     nil,
	}, "/static": &assets.File{
		Path:     "/static",
		FileMode: 0x800001ff,
		Mtime:    time.Unix(1553697865, 1553697865543243500),
		Data:     nil,
	}}, "")

Assets returns go-assets FileSystem

Functions

func CopyResource

func CopyResource(path string, to string) error

func ExistResource

func ExistResource(path string) bool

func OpenResource

func OpenResource(path string) (http.File, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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