Skip to content

Instantly share code, notes, and snippets.

@vkuznecovas
Created January 23, 2018 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vkuznecovas/f8d783dbf30c050725f4ea5e7851837e to your computer and use it in GitHub Desktop.
Save vkuznecovas/f8d783dbf30c050725f4ea5e7851837e to your computer and use it in GitHub Desktop.
gin test
package main
import "github.com/gin-gonic/gin"
func main() {
r := gin.New()
r.GET("/", func(c *gin.Context) {
c.String(200, c.ClientIP())
})
r.Run() // listen and serve on 0.0.0.0:8080
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment