asset

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: MIT Imports: 14 Imported by: 1

Documentation

Overview

Package asset provides access to assets that have been stored into the binary executable which has been turned into a self-extracting zip archive.

If the current directory contains a sub directory `assets', files present there will override corresponding files in the zip archive.

Index

Constants

This section is empty.

Variables

A file system containing the asset files

Functions

func BindBefore

func BindBefore(dir string)

func BindExeDir

func BindExeDir()

func BindExeSubDir

func BindExeSubDir(name string)

func FileString

func FileString(name string) (content string, err error)

FileString reads an asset file an returns its contents as a string.

func HttpFS

func HttpFS(root string) http.FileSystem

func Open

func Open(name string) (vfs.ReadSeekCloser, error)

func ParseHTMLTemplateFiles added in v0.1.1

func ParseHTMLTemplateFiles(t *template.Template, filenames ...string) (tnew *template.Template, err error)

func ParseTemplateFiles

func ParseTemplateFiles(t *template.Template, filenames ...string) (tnew *template.Template, err error)

func ReadDir

func ReadDir(path string) (fi []os.FileInfo, err error)

func Stat

func Stat(path string) (fi os.FileInfo, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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