Generate HTML forms dynamically and easily with Go
GoForm reduces the risk of errors and simplifies building and managing web forms, and makes them easy to integrate into different applications and templates.
Why a dynamic form generator in Go?
For years, both at work and in my personal projects, I’ve wanted full control over the data I collect through web forms. That involves two steps: the form itself, where users enter their data, and processing that data once they press the submit button.
A lot can go wrong along the way. Above all, the form must be well built and include all the validation needed to keep the experience as simple as possible, and it must be fully accessible in both desktop and mobile browsers.
GoForm reduces the risk of errors and simplifies building and managing web forms, and makes them easy to integrate into different applications and templates.
Throughout my career, dynamic applications have always needed forms generated from what their users need: as many fields as they want, with different input types, values, formats and validation rules. Generating forms dynamically cuts development time, means a developer isn’t needed every time someone wants to add or change a field, and reduces the number of template files in the application.
GoForm removes the need to write HTML forms by hand. Once you’ve defined a template for each type of form element you’ll use (the ones built into the library or your own), you never have to edit HTML again. That avoids the mistakes that creep in when writing forms from scratch or copying and pasting from existing ones.
Why Go?
It’s no secret that Go is one of the most versatile modern languages: fast, reliable and able to handle heavy workloads. There are other form-generation libraries for Go, but GoForm is built for truly dynamic forms. Go already provides excellent features; GoForm adds a faster way to build forms, with fewer errors.
Try it
The easiest way to understand GoForm is to see it in action: robertomo.com/goform.
GoForm is free to use. Add it to your project with:
go get github.com/irob/goform
The source code is on GitHub: github.com/irob/goform.