企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
[TOC] ## 实例 ``` func main() { r := gin.Default() r.GET("/JSONP", func(c *gin.Context) { data := gin.H{ "foo": "bar", } c.JSONP(http.StatusOK, data) }) r.Run(":8080") } ``` `curl http://127.0.0.1:8080/JSONP?callback=x`