-
获取url或者表单中的数据
利用get[int,string]方法,具体参看controller.go文件源码,根据表单或url中设计的参数作为key来查找 -
数据显示格式
controller.Data是一个map类型,key来固定格式,value来固定输出内容,通常key是固定好的内置格式,可以位json,xml,yaml等accpetHeader的格式。
ServeFormatted serve YAML, XML OR JSON, depending on the value of the Accept header
- List item