web

package
v0.0.12-0...-8471e6b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRoutes

func InitRoutes() *macaron.Macaron

InitRoutes initiates the gin routes and loads values from config

Types

type BundledFS

type BundledFS struct {
	packr.Box
}

BundledFS implements ServeFileSystem for packr.Box

func (*BundledFS) Exists

func (fs *BundledFS) Exists(prefix string, filepath string) bool

Exists returns true if filepath exists

func (*BundledFS) Get

func (fs *BundledFS) Get(filename string) (io.Reader, error)

Get returns the content of filename

func (*BundledFS) ListFiles

func (fs *BundledFS) ListFiles() (files []macaron.TemplateFile)

ListFiles returns all files in FS

type BundledFile

type BundledFile struct {
	FileName string
	// contains filtered or unexported fields
}

BundledFile represents a file in a BundledFS

func (*BundledFile) Data

func (b *BundledFile) Data() []byte

Data returns the content of file

func (*BundledFile) Ext

func (b *BundledFile) Ext() string

Ext returns the file extension

func (*BundledFile) Name

func (b *BundledFile) Name() string

Name represents the name of the file

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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