package controllers import ( beego "github.com/beego/beego/v2/server/web" ) // PartnerController shows partners on a map type PartnerController struct { beego.Controller } // Get i func (c *PartnerController) Get() { c.Data["Website"] = "beego.me" c.Data["Email"] = "astaxie@gmail.com" c.TplName = "item.tpl" c.EnableXSRF = false } // Add i func (c *PartnerController) Add() { c.Data["Website"] = "beego.me" c.Data["Email"] = "astaxie@gmail.com" c.TplName = "map.tpl" c.EnableXSRF = false }