kirves / go-form-it Goto Github PK
View Code? Open in Web Editor NEWGolang Forms made easy.
License: MIT License
Golang Forms made easy.
License: MIT License
Template path is not friendly, how about pass the path thorugn a init command, or point out the template file path when create a form.
Hi,
do you have any plan of implementing validation?
How do you currently solve validation and show errors to user?
BR
2020/04/23 15:26:54 Server started at port: 8081
2020/04/23 15:26:58 http: panic serving [::1]:58624: open \Users\mops1k\Go/src/github.com/kirves/go-form-it/templates/baseform.html: The system cannot find the path specified.
goroutine 18 [running]:
net/http.(*conn).serve.func1(0xc00009e3c0)
C:/Go/src/net/http/server.go:1772 +0x140
panic(0x7c3420, 0xc00006d1d0)
C:/Go/src/runtime/panic.go:975 +0x3f1
github.com/kirves/go-form-it.BaseForm(0x81d574, 0x4, 0x81cf05, 0x1, 0x40d1ef)
C:/Users/mops1k/Go/src/testWebApp/vendor/github.com/kirves/go-form-it/forms.go:40 +0x2c4
github.com/kirves/go-form-it.BaseFormFromModel(0x7b2ac0, 0xc00003cc10, 0x81d574, 0x4, 0x81cf05, 0x1, 0x796f01)
C:/Users/mops1k/Go/src/testWebApp/vendor/github.com/kirves/go-form-it/forms.go:84 +0x60
testWebApp/form.(*Greeting).Build(...)
C:/Users/mops1k/Go/src/testWebApp/form/greeting.go:10
testWebApp/controller.Homepage(0x8b33a0, 0xc0001560e0, 0xc000140300)
C:/Users/mops1k/Go/src/testWebApp/controller/homepage.go:14 +0xba
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.