You cannot 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 (
|
|
"net/http"
|
|
//"database/sql"
|
|
"github.com/gin-gonic/gin"
|
|
|
|
//_ "github.com/lib/pq"
|
|
)
|
|
|
|
func main() {
|
|
r := gin.Default()
|
|
|
|
r.GET("/", func(c *gin.Context) {
|
|
c.JSON(http.StatusOK, gin.H{"data": "hello world"})
|
|
})
|
|
|
|
r.Run()
|
|
} |