https://github.com/zephinzer/go-playground
A repository with code for myself to learn and practice Golang using practical applications.
https://github.com/zephinzer/go-playground
Last synced: about 1 year ago
JSON representation
A repository with code for myself to learn and practice Golang using practical applications.
- Host: GitHub
- URL: https://github.com/zephinzer/go-playground
- Owner: zephinzer
- Created: 2018-09-09T16:56:02.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-13T17:29:38.000Z (almost 8 years ago)
- Last Synced: 2025-02-01T18:27:12.253Z (over 1 year ago)
- Language: Go
- Size: 19.5 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Experiments in Go
A repository with code for myself to learn and practice Golang using practical applications.
## Example Listing
- [Basic Server](./basic-server)
- [Logger](./logger)
- [Server with Routing](./server-routing)
## Running Applications
All projects use `Makefile`s to execute.
In any directory, run `make init` to initialise the project.
To run the project in development, use `make dev`.
To run the project in production, use `make prod`.
## Creating A New Project
To create a new project from the template, use `make create PROJECT=${PROJECT_NAME}` where `${PROJECT_NAME}` is the name of your new project in `kebab-case`.
## Design and Technical Decisions
### Logger
| Name | URL | Stars | Forks | Issues | PRs | Contributors | License |
| --- | --- | --- | --- | --- | --- | --- |
| Zap | https://github.com/uber-go/zap | 5079 | 364 | 25 | 6 | 48 | [MIT](https://github.com/uber-go/zap/blob/master/LICENSE.txt) |
### Router
| Name | URL | Stars | Forks | Issues | PRs | Contributors | License |
| --- | --- | --- | --- | --- | --- | --- | --- |
| github.com/julienschmidt/httprouter | https://github.com/julienschmidt/httprouter | 7705 | 767 | 45 | 13 | 33 | [Custom](https://github.com/julienschmidt/httprouter/blob/master/LICENSE) |
| github.com/gorilla/mux | https://github.com/gorilla/mux | 6984 | 834 | 17 | 5 | 67 | [BSD-3-Clause](https://github.com/gorilla/mux/blob/master/LICENSE) |
| github.com/go-chi/chi | https://github.com/go-chi/chi | 4084 | 273 | 17 | 7 | 48 | [MIT](https://github.com/go-chi/chi/blob/master/LICENSE) |