These are chat archives for gin-gonic/gin

20th
Mar 2018
ostrichegret
@ostrichegret
Mar 20 2018 13:53
hi
i need help with gin
rows, err := db.NamedQuery(SELECT * FROM lm_user WHERE user_account=:user_account, map[string]interface{}{"user_account": "ostrichegret"})
// fmt.Printf("%#v\n", rows)

    c.JSON(200, gin.H{
        "message": rows,
    })
how to output the result to json?
i got this result
{"message":{"Mapper":{}}}