diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-09-22 17:47:14 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-09-22 17:47:14 -0700 |
commit | 27c175f6c626175598ee0a3d5c7b750a84d583e2 (patch) | |
tree | 563cd0451d81464afb1269d7f703ddb8e4d9d9f0 /content/item.go | |
parent | f31c13d76e5de8ab0420ecaf0f570e52f6218066 (diff) |
adding a generator for custom post content types, slug for url based on title, main file to manage commands
Diffstat (limited to 'content/item.go')
-rw-r--r-- | content/item.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/item.go b/content/item.go index 8b834e4..08d6359 100644 --- a/content/item.go +++ b/content/item.go @@ -1,7 +1,7 @@ package content // Item should only be embedded into content type structs. -// Helper for DB-related actions type Item struct { - ID int `json:"id"` + ID int `json:"id"` + Slug string `json:"slug"` } |