A zoo-animal demo written in Go(gin/gorm).
I've implemented basic CRUD in two ways.
- a native gin/gorm way as it described in their docs
- a reusable pattern with a little Object-Oriented tricks
- apps/zoo/configure.go: router table situated here
- apps/zoo/handlers.go: Create, Get, Gets, Update, Remove handler entrance
- apps/apps.go: a parent CRUD handler entrance with a more general form
- apps/animal/configure.go: router table still situated here
- apps/animal/configure.go: you can override parent CRUD here