example/bindata/example.go
func main() {
	r := gin.Default()

	r.Use(static.Serve("/static", BinaryFileSystem("data")))
	r.GET("/ping", func(c *gin.Context) {
		c.String(200, "test")
	})
	// Listen and Server in 0.0.0.0:8080
	r.Run(":8080")
}
func main() {
	r := gin.Default()

	r.Use(static.Serve("/static", BinaryFileSystem("data")))
	r.GET("/ping", func(c *gin.Context) {
		c.String(200, "test")
	})
	// Listen and Server in 0.0.0.0:8080
	r.Run(":8080")
}
func main ( ) { r := gin . Default ( ) r . Use ( static . Serve ( " " , BinaryFileSystem ( " " ) ) ) r . GET ( " " , func ( c * gin . Context ) { c . String ( 200 , " " ) } ) // Listen and Server in 0.0.0.0:8080 r . Run ( " " ) }
// Usage
// $ go-bindata data/
// $ go build && ./bindata
//
Usage $ go - bindata data / $ go build && . / bindata