Documentation ¶ Overview ¶ Package domain contains the entities of the article maker business logic Index ¶ type Article type Category type Publisher Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Article ¶ type Article struct { ID int Title string `json:"title"` Body string `json:"body"` // get just the body field Publisher Category CreatedAt time.Time `json:"created_at"` PublishedAt time.Time `json:"published_at"` Deleted bool `json:"-"` } type Category ¶ type Category struct { ID int `json:"-"` Name string `json:"category"` } type Publisher ¶ type Publisher struct { ID int `json:"-"` Name string `json:"publisher"` } Source Files ¶ View all Source files article.go Click to show internal directories. Click to hide internal directories.