App

The App Object

The App object is the core of your gofh application. It's responsible for handling routes, serving requests, and managing the application lifecycle.

app := gofh.New()

You can configure the app with options:

app := gofh.New(
    gofh.WithAddr(":3000"),
    gofh.WithTemplateDir("./templates"),
)

Last updated