Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)