├── .github └── workflows │ └── go.yml ├── .gitignore ├── LICENSE ├── README.md ├── README_ch.md ├── _example ├── complex │ ├── controller │ │ ├── api │ │ │ ├── api.go │ │ │ ├── v1 │ │ │ │ ├── user-private.go │ │ │ │ └── user-public.go │ │ │ └── v2 │ │ │ │ ├── user-private.go │ │ │ │ └── user-public.go │ │ ├── hello.go │ │ └── pingpong.go │ ├── go.mod │ ├── main.go │ ├── other │ │ └── middleware │ │ │ ├── auth.go │ │ │ └── save.go │ └── route.entry.go └── simple │ ├── controller │ └── hello.go │ ├── go.mod │ ├── main.go │ ├── middleware │ └── auth.go │ └── route.entry.go ├── go.mod ├── lib ├── context.go ├── file_operate.go ├── functions.go ├── generate.go ├── group_tree.go └── template.go ├── main.go ├── test_example.sh └── utils └── utils.go /.github/workflows/go.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/.github/workflows/go.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | /.vscpde 3 | go.sum 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/README.md -------------------------------------------------------------------------------- /README_ch.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/README_ch.md -------------------------------------------------------------------------------- /_example/complex/controller/api/api.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/_example/complex/controller/api/api.go -------------------------------------------------------------------------------- /_example/complex/controller/api/v1/user-private.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/_example/complex/controller/api/v1/user-private.go -------------------------------------------------------------------------------- /_example/complex/controller/api/v1/user-public.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/_example/complex/controller/api/v1/user-public.go -------------------------------------------------------------------------------- /_example/complex/controller/api/v2/user-private.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/_example/complex/controller/api/v2/user-private.go -------------------------------------------------------------------------------- /_example/complex/controller/api/v2/user-public.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/_example/complex/controller/api/v2/user-public.go -------------------------------------------------------------------------------- /_example/complex/controller/hello.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/_example/complex/controller/hello.go -------------------------------------------------------------------------------- /_example/complex/controller/pingpong.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/_example/complex/controller/pingpong.go -------------------------------------------------------------------------------- /_example/complex/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/_example/complex/go.mod -------------------------------------------------------------------------------- /_example/complex/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/_example/complex/main.go -------------------------------------------------------------------------------- /_example/complex/other/middleware/auth.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/_example/complex/other/middleware/auth.go -------------------------------------------------------------------------------- /_example/complex/other/middleware/save.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/_example/complex/other/middleware/save.go -------------------------------------------------------------------------------- /_example/complex/route.entry.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/_example/complex/route.entry.go -------------------------------------------------------------------------------- /_example/simple/controller/hello.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/_example/simple/controller/hello.go -------------------------------------------------------------------------------- /_example/simple/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/_example/simple/go.mod -------------------------------------------------------------------------------- /_example/simple/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/_example/simple/main.go -------------------------------------------------------------------------------- /_example/simple/middleware/auth.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/_example/simple/middleware/auth.go -------------------------------------------------------------------------------- /_example/simple/route.entry.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/_example/simple/route.entry.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/go.mod -------------------------------------------------------------------------------- /lib/context.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/lib/context.go -------------------------------------------------------------------------------- /lib/file_operate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/lib/file_operate.go -------------------------------------------------------------------------------- /lib/functions.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/lib/functions.go -------------------------------------------------------------------------------- /lib/generate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/lib/generate.go -------------------------------------------------------------------------------- /lib/group_tree.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/lib/group_tree.go -------------------------------------------------------------------------------- /lib/template.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/lib/template.go -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/main.go -------------------------------------------------------------------------------- /test_example.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/test_example.sh -------------------------------------------------------------------------------- /utils/utils.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1-st/gin-annotation/HEAD/utils/utils.go --------------------------------------------------------------------------------