You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package main
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func main() {
|
|
router := gin.Default()
|
|
|
|
router.GET("/index", func(ctx *gin.Context) {
|
|
ctx.String(200, "hellpo_world")
|
|
})
|
|
|
|
router.StaticFile("/avatar.jpg", "/gocode/go_fabric/static/imags/avatar/avatar.jpg")
|
|
|
|
router.Run(":8080")
|
|
}
|