Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CRUD ¶
func CRUD(group *gin.RouterGroup, path string, resource interface{})
It defines
POST: /path GET: /path PUT: /path/:id POST: /path/:id
Types ¶
type CreateSupported ¶
All of the methods are the same type as HandlerFunc if you don't want to support any methods of CRUD, then don't implement it
type DeleteSupported ¶
type ListSupported ¶
type TakeSupported ¶
type UpdateSupported ¶
Click to show internal directories.
Click to hide internal directories.