httpkit

module
v0.0.0-...-28537ac Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT

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

Path Synopsis
examples
simple command

Jump to

Keyboard shortcuts

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