A small project that collects various nice things to get started with Go Web Development.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
go-web-starter-kit/api/handlers.go

20 lines
323 B

package api
import (
"log"
"time"
"github.com/gofiber/fiber/v2"
)
func Setup(app *fiber.App) {
// this forces static pages to reload
app.Static("/", "./public", fiber.Static{
Compress: false,
CacheDuration: 1 * time.Nanosecond,
})
}
func Shutdown() {
log.Println("Shutting down controllers...")
}