Skip to content

A light weighted web framework implemented by Go.

License

Notifications You must be signed in to change notification settings

qwezarty/zoo-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zoo-demo

A zoo-animal demo written in Go(gin/gorm).

Build Status 切换中文

introductions

I've implemented basic CRUD in two ways.

  1. a native gin/gorm way as it described in their docs
  2. a reusable pattern with a little Object-Oriented tricks

native way

  • apps/zoo/configure.go: router table situated here
  • apps/zoo/handlers.go: Create, Get, Gets, Update, Remove handler entrance

reusable pattern

  • 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

About

A light weighted web framework implemented by Go.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published