package controllers import ( "github.com/labstack/echo/v4" ) type About struct { Controller } func (a *About) Get(c echo.Context) error { p := NewPage(c) p.Layout = "main" p.Name = "about" p.Data = "This is the about page" return a.RenderPage(c, p) }