bindata

package module
v0.0.0-...-b27f9ec Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

README

bindata Build Status

Package bindata is a helper module that allows to use in-memory static and template files for Macaron via go-bindata.

Installation
go get github.com/go-macaron/bindata

Getting Help

License

This project is under the Apache License, Version 2.0. See the LICENSE file for the full license text.

Documentation

Overview

Package bindata is a helper module that allows to use in-memory static and template files for Macaron.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Static

func Static(opt Options) *assetfs.AssetFS

func Templates

func Templates(opt Options) templateFileSystem

func Version

func Version() string

Types

type Options

type Options struct {
	// Asset should return content of file in path if exists
	Asset func(path string) ([]byte, error)
	// AssetDir should return list of files in the path
	AssetDir func(path string) ([]string, error)
	// AssetInfo should return the info of file in path if exists
	AssetInfo func(path string) (os.FileInfo, error)
	// AssetNames should return list of all asset names
	AssetNames func() []string
	// Prefix would be prepended to http requests
	Prefix string
}

Jump to

Keyboard shortcuts

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