package
module
Version:
v0.0.0-...-5864686
Opens a new window with list of versions in this module.
Published: Jul 3, 2014
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
README
¶
goji_gzip
goji framework gzip middleware
example:
package main
import (
"fmt"
"github.com/lidashuang/goji_gzip"
"net/http"
"github.com/zenazn/goji"
)
func main() {
// use gzip handle for every request
goji.Use(gzip.GzipHandler)
goji.Get("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "helloworld..........")
})
goji.Serve()
}
Documentation
¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.