Documentation
¶
Overview ¶
Example ¶
package main import ( "net/http" "github.com/go-http-utils/compress" ) func main() { mux := http.NewServeMux() mux.HandleFunc("/", func(res http.ResponseWriter, req *http.Request) { res.Write([]byte("Hello World")) }) http.ListenAndServe(":8080", compress.Handler(mux)) }
Output:
Index ¶
Examples ¶
Constants ¶
View Source
const Version = "0.1.0"
Version is this package's version.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.