display database table in html table like a gridview or dataview.

98 views
Skip to first unread message

Connel blaze

unread,
Jul 6, 2017, 8:10:11 AM7/6/17
to golang-nuts
https://play.golang.org/p/QqHXewyDTp 
This is what i have. It's a simple CRUD example I'm using to learn go-database/sql. Create works fine but the 'Read' ain't working.
When I goto the read route, it's a blank html page. No data. like the struct isn't correct. 
Is there something I'm missing?

Jakob Borg

unread,
Jul 6, 2017, 12:29:21 PM7/6/17
to Connel blaze, golang-nuts
Error checking on the template execution is the first thing that comes to mind. 

//jb
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nathan Kerr

unread,
Jul 6, 2017, 1:57:46 PM7/6/17
to golang-nuts
For other readers of this thread:

Reply all
Reply to author
Forward
0 new messages