Skip to content

Instantly share code, notes, and snippets.

@benjivesterby
Created January 4, 2022 20:25
Show Gist options
  • Save benjivesterby/d70f86f367121c0f3c66f212593a395e to your computer and use it in GitHub Desktop.
Save benjivesterby/d70f86f367121c0f3c66f212593a395e to your computer and use it in GitHub Desktop.
Firefox Bookmark chema from JSON in GO
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