如何在Revel控制器中添加新字段?

huangapple go评论77阅读模式
英文:

How to add new field in revel controller

问题

我正在使用来自"golang"框架的验证示例。
在现有的代码中,我添加了一个新字段。然而,它无法识别字段的内容,并且总是抛出错误。

这是网址:https://github.com/revel/examples/tree/master/validation

我已经更新了模型、控制器和视图中的条目,但仍然出现错误。

英文:

i am using the validation example from the "revel" golang framework.
in the existing code, i have added new field. however, it is not recognizing the the contents of field and always throws the error.

here is the url: https://github.com/revel/examples/tree/master/validation

i have updated the entries in the model, controller and views. it is still throwing error.

答案1

得分: 0

我在控制器中添加了具体的结构,并解决了问题...

英文:

i added the specific structure in the controller and its resolved...

huangapple
  • 本文由 发表于 2017年8月20日 02:26:22
  • 转载请务必保留本文链接:https://go.coder-hub.com/45775009.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定