Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tonny-zhang/cotton-example
cotton example
https://github.com/tonny-zhang/cotton-example
Last synced: 1 day ago
JSON representation
cotton example
- Host: GitHub
- URL: https://github.com/tonny-zhang/cotton-example
- Owner: tonny-zhang
- Created: 2021-04-19T08:02:22.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-09-28T07:47:12.000Z (about 3 years ago)
- Last Synced: 2024-11-06T05:12:34.048Z (about 2 months ago)
- Language: Go
- Size: 36.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## cotton example
example for [cotton](https://github.com/tonny-zhang/cotton)
## custom usage
* [get query](./query/main.go)
* [post](./post/main.go)
* [post file](./post/main.go)
* [param](./param/main.go)
* [static file](./staticfile/main.go)
* custom static file
* cotton static file
* go:embed
* [template](./template/main.go)
* [group](./group/main.go)
* custom group not found
* custom group middleware
* [custom-notfound](./custom-notfound/main.go)
* [redirect](./redirect/main.go)
* [domain](./domain/main.go)
* [custom-logger-file](./logger-file/main.go)
## middleware
* [example for session (memory, redis, memcache)](./middleware-requestsign/main.go)
* [example for post request data sign](./middleware-requestsign/main.go)