neg0 / go-oop

Golang OOP Concepts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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
  • Assertion, Mock & Test Suits: 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:

~$ docker-compose -f docker/docker-compose.yml up -d

Enter the Golang Container:

~$ docker-compose -f docker/docker-compose.yml exec golang bash

Shutdown the Golang container:

~$ 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

About

Golang OOP Concepts

License:Creative Commons Attribution Share Alike 4.0 International


Languages

Language:Go 92.4%Language:Dockerfile 4.0%Language:Makefile 3.4%Language:Shell 0.2%