Versions in this module Expand all Collapse all v1 v1.0.0 Nov 30, 2021 Changes in this version + func Register(r *gin.Engine) error + type DemoApi struct + func NewDemoApi() *DemoApi + func (api *DemoApi) Demo(c *gin.Context) + func (api *DemoApi) Demo2(c *gin.Context) + func (api *DemoApi) DemoCache(c *gin.Context) + func (api *DemoApi) DemoOrm(c *gin.Context) + func (api *DemoApi) DemoPost(c *gin.Context) + func (api *DemoApi) DemoRedis(c *gin.Context) + type Repository struct + func NewRepository() *Repository + func (r *Repository) GetUserByIds([]int) []UserModel + func (r *Repository) GetUserIds() []int + type Service struct + func NewService() *Service + func (s *Service) GetUsers() []UserModel + type User struct + ActivatedAt sql.NullTime + Age uint8 + Birthday *time.Time + CreatedAt time.Time + Email *string + ID uint + MemberNumber sql.NullString + Name string + UpdatedAt time.Time + type UserDTO struct + ID int + Name string + func StudentsToUserDTOs(students []demoService.Student) []UserDTO + func UserModelsToUserDTOs(models []UserModel) []UserDTO + type UserModel struct + Age int + Name string + UserId int