我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

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

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.

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

近期文章

  • 如何在函数中传递动态参数
  • Reflect认为struct值也是ptr吗?
  • 如何在Go中将[Size] byte转换为字符串?
  • 如何在Golang中正确使用OR运算符
  • 是否可以在运行时绑定方法?
  • 解码的JSON响应返回空结构
  • App Engine数据存储区查询,可访问多个索引
  • 我如何找到go包的版本
  • 尚不存在的对象的竞争条件
  • Golang JSON Marshal / Unmarshal postgres now()
  • Python中is运算符的Golang等效项
  • 加载的MobileNet模型给出错误的预测
  • 运行测试时如何丢弃打印输出
  • 这个go并发示例发生了什么?
  • 使用反射确定类型是否为字符串
  • http函数Golang的附加参数
  • 如何快速有效地学习golang? [关闭]
  • 我可以从源代码进行大端编解码吗?
  • 如何在Tun / Tap接口上读取TCP数据包?
  • 如何使用多对多关系进行更新

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华