https://github.com/mayurshivakumar/decorator-pattern
decorator pattern
https://github.com/mayurshivakumar/decorator-pattern
decorator-pattern decorators design-patterns golang learning-go learning-golang patterns
Last synced: 5 months ago
JSON representation
decorator pattern
- Host: GitHub
- URL: https://github.com/mayurshivakumar/decorator-pattern
- Owner: mayurshivakumar
- License: gpl-3.0
- Created: 2020-10-06T16:56:52.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-09T17:22:57.000Z (over 5 years ago)
- Last Synced: 2023-03-01T21:26:39.511Z (over 3 years ago)
- Topics: decorator-pattern, decorators, design-patterns, golang, learning-go, learning-golang, patterns
- Language: Go
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Decorator-pattern
Decorators essentially allow you to wrap existing functionality and append or prepend your own custom functionality on top.
* [Timing decorator](https://github.com/mayurshivakumar/decorator-pattern/tree/main/timing-decorator)
* [Logging decorator](https://github.com/mayurshivakumar/decorator-pattern/tree/main/logging-decorator)
* [Cached decorator](https://github.com/mayurshivakumar/decorator-pattern/tree/main/cached-decorator) - decorator for getter(http, grpc ....)
* [Decorator for http handler](https://github.com/mayurshivakumar/jwtLibWrapper/blob/0ef0092324e0c954b42fa15cf69bd2a28cac2418/handlers.go#L52)