Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 459 Bytes

readme.md

File metadata and controls

23 lines (19 loc) · 459 Bytes

Gin+Fume example

Example setup of a Gin project running in 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": "Gin running with Fume"}) 
	})
	fume.Start(routes, fume.Options{})
}