Gorilla schema vs Django-forms-like validation in Go

249 views
Skip to first unread message

Michael Nelson

unread,
Dec 10, 2012, 7:58:47 AM12/10/12
to goril...@googlegroups.com
Hi!

While learning more about Go I tried implementing something similar to django.forms' input validation, data cleaning and error collection - goforms [1]. I've recently taken a quick look at gorilla schema which does data cleaning - but doesn't (seem to) encapsulate input validation (ie. number ranges, string sizes etc.) or error collection (other than conversion errors).

Before I abandon my goforms learning project and instead look to gorilla.schema, can anyone confirm the above, or point me to some examples which demo input validation and customised errors [2]. Or if you've time, take a quick look at goforms (both the readme and tests demo usage) and let me know why it's not a useful direction for go.

Thanks!

[2] goforms doesn't have these yet either, but it was the next thing I was going to add and I think it'll be pretty straight-forward.

Vladimir Mihailenco

unread,
Dec 10, 2012, 8:15:12 AM12/10/12
to Gorilla web toolkit
You may want to look at https://github.com/vmihailenco/gforms ;)


--
 
 

Michael Nelson

unread,
Dec 10, 2012, 8:19:05 AM12/10/12
to goril...@googlegroups.com
On Mon, Dec 10, 2012 at 2:15 PM, Vladimir Mihailenco <vladimi...@gmail.com> wrote:
You may want to look at https://github.com/vmihailenco/gforms ;)


Indeed - thanks Vladimir, it'll be interesting to compare and learn. I can't see any mention of gforms in the archive here, did you discuss it elsewhere? If so, can you point me to those discussions too?

Thanks!

 

--
 
 



--
-
Michael Nelson
http://micknelson.wordpress.com/

Vladimir Mihailenco

unread,
Dec 10, 2012, 11:09:26 AM12/10/12
to Gorilla web toolkit
I did not discuss it anywhere before. Mainly because I used it only for simple forms and validation, so it can not be considered stable. But it works for me ;)


--
 
 

Reply all
Reply to author
Forward
0 new messages