From 9daaed4f6facd896e046034a265d2d590a0c62ea Mon Sep 17 00:00:00 2001 From: Vincent Boutour Date: Fri, 14 May 2021 17:52:24 +0200 Subject: [PATCH] refactor(provider): Optimising memory alignment of page struct Signed-off-by: Vincent Boutour --- pkg/provider/page.go | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/pkg/provider/page.go b/pkg/provider/page.go index eba0d9e8..7b988eae 100644 --- a/pkg/provider/page.go +++ b/pkg/provider/page.go @@ -14,29 +14,25 @@ var ( // Page renderer to user type Page struct { - Layout string + Content map[string]interface{} + Error *Error + Message renderer.Message PublicURL string Title string Description string - - Content map[string]interface{} - Error *Error - - Message renderer.Message - Request Request - Config Config + Layout string + Config Config + Request Request } // PageBuilder for interactively create page type PageBuilder struct { - layout string - content map[string]interface{} error *Error - message renderer.Message - request Request + layout string config Config + request Request } // Config set Config for page