unicornus

module
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2023 License: MIT

README

Unicornus: Easy Form Generation in Go

This is v0.01 and not useful at all.

Build state Go Version Version Issues Report

gopherbadger-tag-do-not-edit

Unicornus is a simple library for building HTML forms in Go.

Get started

Install
go get github.com/inkmi/unicornus

Idea

The idea of Unicornus is to combine a data model in Go described as structs with validation tags with a description of the form layout in Go to render an HTML form.

           ┌─────────────┐             ┌─────────────┐
           │             │             │             │
Validation │ Data Model  ├──────┬──────┤ Form Layout │
           │             │      │      │             │
           │             │      │      │             │
           └─────────────┘      │      └─────────────┘
                  ▲             │
                  │             │
                  │             │
                  │             │
                  │             │
                  │             │
                  │             ▼
                  │       ┌───────────┐
                  │       │           │
           Submit │       │           │
                  │       │   HTML    │
                  └───────┤   Form    │
                          │           │
                          │           │
                          └───────────┘

License information

MIT License

Contributors

Major

Directories

Path Synopsis
pkg
js

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL