Skip to content

Commit

Permalink
refactor(provider): Optimising memory alignment of page struct
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed May 14, 2021
1 parent dda9d53 commit 9daaed4
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions pkg/provider/page.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9daaed4

Please sign in to comment.