joncalhoun / form Goto Github PK
View Code? Open in Web Editor NEWEasily create HTML forms with Go structs.
License: MIT License
Easily create HTML forms with Go structs.
License: MIT License
Is this forms library agnostic of any particular CSS?JS libraries/frameworks? For example can I use PicnicCSS or SpectreCSS or some classless CSS library? Sorry I haven't looked too deeply at your codebase to answer this myself :/
Form labels only support single languages (from what I see...). Perhaps label could be extended to support multiple languages.
It could look something like this:
Now:
type address struct {
Street1 string
Street2 string
City string
State string
Zip string ``form:"label=Postal Code"`
}
Perhaps this could be changed to something like:
type address struct {
Street1 string
Street2 string
City string
State string
Zip string `form:"label.en=Postal Code,label.fr=Code Postal,label.jp=郵便番号" `
}
Hey thanks for this package! It's working well for most of my project, but I just wanted to be able to pass in a slice of ints or a strings or something and be able to generate option values for a select.. Any hints on how you might accomplish that? I'm kinda stumped. I can see how I could make them static by defining a "select" type, but it'd be cool if I could pass in a list too.
Thanks!
Hi,
I'm trying to use your librayr to generate a form for Config
struct.
I get this error I don't quite know how to debug yet:
template: manage:10:18: executing "content" at <inputs_for .Config>: error calling inputs_for: reflect.Value.Interface: cannot return value obtained from unexported field or method
Here is what I'm trying to generate a form for:
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.