mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
18 lines
250 B
Markdown
18 lines
250 B
Markdown
|
# Gin Default Server
|
||
|
|
||
|
This is API experiment for Gin.
|
||
|
|
||
|
```go
|
||
|
package main
|
||
|
|
||
|
import (
|
||
|
"github.com/gin-gonic/gin"
|
||
|
"github.com/gin-gonic/gin/ginS"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
ginS.GET("/", func(c *gin.Context) { c.String(200, "Hello World") })
|
||
|
ginS.Run()
|
||
|
}
|
||
|
```
|