douqian8238 2014-03-27 10:31
浏览 5
已采纳

WTForms等同于Go吗?

I am currently developing an application using Flask, WTForms, SQLAlchemy and the corresponding Flask extensions to glue them all together. I am considering moving to Go in the future because reasons. Are there any libraries in Go that allow me to map web forms to models and parameterise validation the same way WTForms does?

  • 写回答

1条回答 默认 最新

  • doujieyu7062 2014-03-27 12:08
    关注

    There is not something as "complete" as WTForms for Go (yet): you will find that Go packages are a little more modular than even Flask's.

    You can cover the POST form to Go struct with either goforms or gorilla/schema.

    I'd also recommend sqlx as a nice shim on top of database/sql.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 nslt的可用模型,或者其他可以进行推理的现有模型
  • ¥15 arduino上连sim900a实现连接mqtt服务器
  • ¥15 vncviewer7.0安装后如何正确注册License许可证,激活使用
  • ¥15 phython如何实现以下功能?查找同一用户名的消费金额合并2
  • ¥66 关于人体营养与饮食规划的线性规划模型
  • ¥15 基于深度学习的快递面单识别系统
  • ¥15 Multisim仿真设计地铁到站提醒电路
  • ¥15 怎么用一个500W电源给5台60W的电脑供电
  • ¥15 请推荐一个轻量级规则引擎,配合流程引擎使用,规则引擎负责判断出符合规则的流程引擎模板id
  • ¥15 Excel表只有年月怎么计算年龄