Skip to content

fumeapp/gin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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