The data is stored as “numeric(8,2)” and shows correctly as numeric values in a sql query using PGAdmin.
Fetching the same query in Go the numeric values destroys and gets into [53 48 48 46 48 48] unless I cast the numeric values as “text”. I am using sqlx.
list := get(query)
tpl.ExecuteTemplate(w, "hrlist.html", list)