This is a simple adapter for Gin that allows you to deploy your application using Fume.
package main
import (
fume "github.com/fumeapp/gin"
"github.com/gin-gonic/gin"
)
func main() {
routes := gin.New()
routes.GET("/", func(c *gin.Context) { c.JSON(200, gin.H{"message": "Hello World"}) })
fume.Start(routes, fume.Options{})
}
Option | Description | Default |
---|---|---|
Port |
Port to listen on | 8080 |
Host |
Host to listen on | localhost |