Goform screenshot

Goform

Author Avatar Theme by Irob
Updated: 31 Jan 2023
24 Stars

Generate HTML forms dynamically and super easy using Golang/Go

Categories

Overview

goform is a form generator written in Golang/Go that allows users to easily create dynamic HTML forms without having to write HTML code. It comes with built-in templates for Bootstrap 5 and plain HTML rendering. With goform, users can generate forms with custom templates and manage different elements.

Features

  • Dynamic Form Generation: goform enables users to generate HTML forms dynamically, eliminating the need to write HTML code.
  • Templates Included: The tool comes with pre-built templates for Bootstrap 5 and plain HTML rendering.
  • Custom Template Support: Users can choose a custom template to apply to their forms and create custom elements as needed.
  • HTML Parsing: goform allows users to parse HTML in the text label element of their forms.
  • Element Removal Functions: The tool provides functions to remove specific elements from the generated forms.
  • Element Set/Grouping: goform supports the ability to set or group elements together in the forms.

Installation

To install goform, follow these steps:

  1. Download the goform package using the following command:
go get github.com/irob/goform
  1. Import the goform package in your Go code:
import "github.com/irob/goform"
  1. In your HTML template file, insert the following code to render the form:
{{/* .Form.Render */}}
  1. Customize the form by choosing the desired template or customizing the elements as needed.

Summary

goform is a user-friendly form generator written in Golang/Go that allows developers to easily create dynamic HTML forms without manually writing HTML code. It provides built-in templates for Bootstrap 5 and plain HTML rendering, as well as the option to choose custom templates. With goform, users can generate forms with custom elements, parse HTML in the text label element, and remove specific elements. It simplifies the form generation process and improves code efficiency.