/gin

Gin adapter for Fume

Primary LanguageGoApache License 2.0Apache-2.0

Fume adapter for Gin

Go Reference GoCard

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{})
}

Options

Option Description Default
Port Port to listen on 8080
Host Host to listen on localhost