https://github.com/fumeapp/gin-example
Example of running Gin in FUme
https://github.com/fumeapp/gin-example
Last synced: 8 months ago
JSON representation
Example of running Gin in FUme
- Host: GitHub
- URL: https://github.com/fumeapp/gin-example
- Owner: fumeapp
- Created: 2022-08-17T23:41:10.000Z (about 3 years ago)
- Default Branch: production
- Last Pushed: 2022-08-18T21:06:19.000Z (about 3 years ago)
- Last Synced: 2025-01-14T03:16:53.027Z (9 months ago)
- Language: Go
- Size: 49.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Gin+Fume example
> Example setup of a Gin project running in Fume
![]()
```go
package mainimport (
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{})
}
```