Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/neg0/go-oop
Golang OOP Concepts
https://github.com/neg0/go-oop
Last synced: about 1 month ago
JSON representation
Golang OOP Concepts
- Host: GitHub
- URL: https://github.com/neg0/go-oop
- Owner: neg0
- License: cc-by-sa-4.0
- Created: 2019-05-24T13:11:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-06T09:33:52.000Z (over 5 years ago)
- Last Synced: 2024-05-23T04:57:49.741Z (7 months ago)
- Language: Go
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Golang OOP Concepts
blah blah about OOP and Go! (to be completed...)In order to follow the instruction and run the test inside the container, you need to have the docker installed on your host machine.
* **Version:** [1.2](https://golang.org/doc/go1.12)
* **Assertion, Mock & Test Suits:** [Testify](https://github.com/stretchr/testify)## Makefile commands
You could run the commands by starting: `~$ make up`
* `build` to build the container
* `build-force` to build the container ignoring cached packages
* `up` and `down` used to up and down the Golang container
* `ssh` to gain an access to tty of running container### Docker Cheat sheet
__Build and Run the Golang container:__
```bash
~$ docker-compose -f docker/docker-compose.yml up -d
```__Enter the Golang Container:__
```bash
~$ docker-compose -f docker/docker-compose.yml exec golang bash
```__Shutdown the Golang container:__
```bash
~$ docker-compose -f docker/docker-compose.yml down
```### IDE Cheat sheet
In order for IDE to detect the location based on replace path in `go.mod`. Please create a symlink like command below:
`ln -s ln -s YOUR-GO-PATH-DIRECTORY/go-oop/src YOUR-GO-PATH-DIRECTORY/src/github.com/neg0/go-oop`