package main import ( "fmt" "net/http" "github.com/hoisie/web" ) func myHandler(ctx *web.Context) string { // store a value in the context ctx.Set("username", "bob") // retrieve a value from the context username := ctx.Get("username") // return the value return fmt.Sprintf("Hello, %s!", username) } func main() { // create a new web application app := web.NewApp() // add a handler that uses the context app.Get("/", myHandler) // start the server http.ListenAndServe(":8080", app) }In this example, we create a new web application and define a handler function that stores a value ("bob") in the context and then retrieves it again to generate a response string. We register this handler with the application and start the server. Package Library: go github.com.hoisie.web Context