Created
January 4, 2022 20:25
-
-
Save benjivesterby/d70f86f367121c0f3c66f212593a395e to your computer and use it in GitHub Desktop.
Firefox Bookmark chema from JSON in GO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type BookmarkTree struct { | |
GUID string `json:"guid"` | |
Title string `json:"title"` | |
Index int `json:"index"` | |
DateAdded int64 `json:"dateAdded"` | |
LastModified int64 `json:"lastModified"` | |
ID int `json:"id"` | |
TypeCode int `json:"typeCode"` | |
Type string `json:"type"` | |
Root string `json:"root"` | |
Children []struct { | |
GUID string `json:"guid"` | |
Title string `json:"title"` | |
Index int `json:"index"` | |
DateAdded int64 `json:"dateAdded"` | |
LastModified int64 `json:"lastModified"` | |
ID int `json:"id"` | |
TypeCode int `json:"typeCode"` | |
Type string `json:"type"` | |
Root string `json:"root"` | |
Children []struct { | |
GUID string `json:"guid"` | |
Title string `json:"title"` | |
Index int `json:"index"` | |
DateAdded int64 `json:"dateAdded"` | |
LastModified int64 `json:"lastModified"` | |
ID int `json:"id"` | |
TypeCode int `json:"typeCode"` | |
Type string `json:"type"` | |
Children []struct { | |
GUID string `json:"guid"` | |
Title string `json:"title"` | |
Index int `json:"index"` | |
DateAdded int64 `json:"dateAdded"` | |
LastModified int64 `json:"lastModified"` | |
ID int `json:"id"` | |
TypeCode int `json:"typeCode"` | |
Iconuri string `json:"iconuri,omitempty"` | |
Type string `json:"type"` | |
URI string `json:"uri"` | |
} `json:"children,omitempty"` | |
URI string `json:"uri,omitempty"` | |
Iconuri string `json:"iconuri,omitempty"` | |
} `json:"children"` | |
} `json:"children"` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment