Skip to content

hypebeast/gojistaticbin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goji-staticbin

goji-staticbin is a middleware for Goji that serves static files from a go-bindata generated asset file.

GoDoc

Installation

To install the library, use the following command:

go get github.com/hypebeast/gojistaticbin

Usage

package main

import (
    "github.com/hypebeast/gojistaticbin"
    "github.com/zenazn/goji"
)

func main() {
    goji.Use(gojistaticbin.Staticbin("static", Asset, gojistaticbin.Options{
        SkipLogging: false,
        IndexFile:   "index.html",
    }))

    goji.Serve()
}

See the examples folder for an example application that uses goji-staticbin.

About

Middleware for Goji (https://github.com/zenazn/goji) that serves static files from a go-bindata (https://github.com/jteeuwen/go-bindata) generated asset file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published