2017-06-13 11:35:10 +08:00
|
|
|
# Gin Default Server
|
2015-08-16 18:44:18 +02:00
|
|
|
|
|
|
|
This is API experiment for Gin.
|
|
|
|
|
|
|
|
```go
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
"github.com/gin-gonic/gin/ginS"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2016-05-17 15:14:47 +08:00
|
|
|
ginS.GET("/", func(c *gin.Context) { c.String(200, "Hello World") })
|
2015-08-16 18:44:18 +02:00
|
|
|
ginS.Run()
|
|
|
|
}
|
|
|
|
```
|