diff --git a/api.go b/api.go index d50acef..d5faf23 100644 --- a/api.go +++ b/api.go @@ -18,8 +18,8 @@ type PostMeta struct { } type PostAPIResponse struct { - MetaData PostMeta `json:"meta"` - Post Post `json:"data"` + MetaData PostMeta `json:"meta"` + Post Post `json:"data"` } // Pages @@ -30,8 +30,8 @@ type PagesMeta struct { } type PagesAPIResponse struct { - MetaData PagingMeta `json:"meta"` - PageList []Page `json:"data"` + MetaData PagingMeta `json:"meta"` + PageList []Page `json:"data"` } type PageAPIResponse struct { diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..1946bf0 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/ButterCMS/buttercms-go + +go 1.15 diff --git a/page.go b/page.go index 053e472..2b50b0a 100644 --- a/page.go +++ b/page.go @@ -1,7 +1,7 @@ package ButterCMS type Page struct { - Slug string `json:"slug"` - PageType string `json:"page_type"` - Fields map[string]interface{} `json:"fields"` + Slug string `json:"slug"` + PageType string `json:"page_type"` + Fields map[string]interface{} `json:"fields"` } diff --git a/tag.go b/tag.go index 77665d4..2e93848 100644 --- a/tag.go +++ b/tag.go @@ -1,7 +1,7 @@ package ButterCMS type Tag struct { - Name string `json:"name"` - Slug string `json:"slug"` - RecentPosts []Post `json:"recent_posts"` + Name string `json:"name"` + Slug string `json:"slug"` + RecentPosts []Post `json:"recent_posts"` }