create type D map[string]interface{}

This commit is contained in:
2024-11-12 15:15:47 +01:00
parent 3c239f6114
commit 1fa09053ac
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -27,5 +27,5 @@ func anotherHelloWorld(c *ron.Context) {
}
func helloWorldJSON(c *ron.Context) {
c.JSON(200, map[string]string{"message": "hello world"})
c.JSON(200, ron.D{"message": "hello world"})
}