From 11c35e9305caa103372aa76778eda0cc086fbaba Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 13 Oct 2022 14:44:00 +0200 Subject: go fmt --- renderer.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'renderer.go') diff --git a/renderer.go b/renderer.go index 140abae..6df662b 100644 --- a/renderer.go +++ b/renderer.go @@ -35,10 +35,10 @@ type GlobalRenderData struct { // BaseRenderData is the base type for templates. It should be extended with // additional template-specific fields: // -// type MyRenderData struct { -// BaseRenderData -// // add additional fields here -// } +// type MyRenderData struct { +// BaseRenderData +// // add additional fields here +// } type BaseRenderData struct { GlobalData GlobalRenderData // additional plugin-specific data @@ -61,15 +61,15 @@ type RenderData interface { // // It can be used by routes to pre-fill the base data: // -// type MyRenderData struct { -// BaseRenderData -// // add additional fields here -// } +// type MyRenderData struct { +// BaseRenderData +// // add additional fields here +// } // -// data := &MyRenderData{ -// BaseRenderData: *alps.NewBaseRenderData(ctx), -// // other fields... -// } +// data := &MyRenderData{ +// BaseRenderData: *alps.NewBaseRenderData(ctx), +// // other fields... +// } func NewBaseRenderData(ectx echo.Context) *BaseRenderData { ctx, isactx := ectx.(*Context) -- cgit v1.2.3