I think it's different when you write html form like <form> <tr><td></td></tr></form> you need get values with r.FormValue("key") instead httpjson can do this using unmarshal with http.request and interface paramters
On Monday, January 8, 2018 at 11:15:55 PM UTC+8, Tong Sun wrote: > > Welcome to go -- "*getting data from html*" is nothing different from > reading a file, which json itself can handle just well. > > If you want something *extremely light*, check out > > go-jsonfile <https://github.com/go-jsonfile>/jsonfile > <https://github.com/go-jsonfile/jsonfile> > > E.g., > > > - > > Here is a simple demo code to read/write JSON files > <https://github.com/suntong/lang/blob/master/lang/Go/src/ds/jsonfile.go> > . > - > > Here is a demo that gets JSON from web url > > <https://github.com/suntong/lang/blob/master/lang/Go/src/ds/jsonfile-http.go> > . > > > On Monday, January 8, 2018 at 4:40:16 AM UTC-5, Flying wrote: >> >> I have a little project, need to get data from html form. >> when the form items get more, i write this. here is the github url >> https://github.com/zjn1234/httpjson >> >> i searched, there is no library like this, >> so what do you guys think。 >> i will appreciate your suggestions >> > -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.