module
Version:
v0.0.0-...-28537ac
Opens a new window with list of versions in this module.
Published: Jan 21, 2026
License: MIT
Opens a new window with license information.
README
¶
httpkit
A super simple but handy web framework for net/http of golang.
package main
import (
"net/http"
"github.com/smallfz/httpkit/kit"
)
func home() string {
return "Hello!"
}
func main() {
mux := http.NewServeMux()
mux.HandleFunc("/", kit.F(home))
server := http.Server{
Addr: ":8080",
Handler: mux,
}
server.ListenAndServe()
}
More to see in folder examples.
Directories
¶
examples
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.