"}) //自动生成csrf验证隐藏表单,var默认为f 代表该表单对象名
f.InputTag({name:"",value:"",class:"",type:""}) //生成Input表单,样式属性可以自定义...f.SelectTag({name:"",option{"a":1,"b":2},value:""}) //生成Select表单,option里为select下拉选项和对应的值,value为设置默认选中项的值...f.TextArea({name:"",value:"",row:10}) //生成text文本框
f.CheckboxTag({name: "IsPublic",label:"",checked:"...(): 生成一个绑定模型的表单,详细
form_for({model_name,actin:"",method:"",var:"f"})
标签内的参数为绑定模型的结构体的属性
eg: model_name...{
ExpiresAt time.Time
}
f.DateTimeTag("ExpiresAt") // 生成datetime-local框,自动填充model_name的name,value
paginator