Documentation
¶
Index ¶
Constants ¶
View Source
const DEFAULT_ENV string = "postgres"
Variables ¶
This section is empty.
Functions ¶
func NewPostgresClient ¶
func NewPostgresClient()
Types ¶
type Article ¶
type Article struct { ID uint `json:"id" gorm:"primary_key"` Title string `json:"title"` Description string `json:"description"` Rate int `json:"rate"` }
func CreateArticle ¶
func DeleteArticle ¶
func ReadArticle ¶
func ReadArticles ¶
func UpdateArticle ¶
Click to show internal directories.
Click to hide internal directories.