diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6f8718f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +amsterdam diff --git a/ui/amcontext.go b/ui/amcontext.go index 673c75d..93b23e2 100644 --- a/ui/amcontext.go +++ b/ui/amcontext.go @@ -24,14 +24,14 @@ type amContext struct { httprc int } -func (c *amContext) Render(name string) error { - return c.echoContext.Render(c.httprc, name, c) -} - func (c *amContext) SetRC(rc int) { c.httprc = rc } +func (c *amContext) Render(name string) error { + return c.echoContext.Render(c.httprc, name, c) +} + func NewAmContext(ctxt echo.Context) AmContext { rc := amContext{ echoContext: ctxt,