Prevent cyclic ref crash in JSON encode

Note that this commit makes no promise about great JSON output from the encoder, but the cyclic refs should be broken.

Fixes #1123
This commit is contained in:
bep
2015-05-23 12:28:01 +02:00
parent be778c3160
commit be7c3bbb09
4 changed files with 35 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ type Page struct {
renderingConfigInit sync.Once
PageMeta
Source
Position
Position `json:"-"`
Node
pageMenus PageMenus
pageMenusInit sync.Once