本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名原文链接~~~

beego笔记(2)之控制器

标准控制器packagemainimport("fmt""github.com/beego/beego/v2/server/web")typeDemo1Controllerstruct{web.Controller}//以Getmethod访问/demo1/f

beego笔记(1)之静态路由和正则路由

导包import("fmt""github.com/beego/beego/v2/server/web""github.com/beego/beego/v2/server/web/context")静态路由//静态路由,多种Method支持

公众号:zze_coding

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×