7. // Struct to store a single tweet
type tweet_item struct {
user string
tweet string
}
// URL Parameters
type myparams struct {
name string
hashtag string
}
8. // Function to render index page
func index() string { return … }
// Function to render search results
func find(ctx *web.Context) string { return … }
9. // Create URL routes and run server
func main() {
web.Get("/", index)
web.Post("/find", find)
web.Run("0.0.0.0:9999")
}