A library of reusable code.
You can use a Docker environment to get going if you have Docker on your computer. In fact, there is no documentation for any other way in this reading.
On Windows, you'll need to set an environment variable $Env:HOME
before
you can start the dev environment. It should be the same value as
$Env:USERPROFILE
, or whatever you need it to be. Once set and it shows up in
Powershell when you run Get-ChildItem Env:
you then do one of the following.
- Clone this repository.
- In a command prompt, run:
docker-compose -f .docker/docker-compose.yml up
- In another command prompt, login to the container:
docker exec -it stdlib_dev_1 sh
- Execute a command such as
go test
~/src/github.com/kohirens/stdlib $ go test PASS ok github.com/kohirens/stdlib 0.004s
- Install the VS code extension "Remote Container".
- Clone this repository locally.
- Open the project in VS Code, which should ask to open the folder in a remote container.
- Open a terminal in VS Code and type
go test
. - Now got to "Run and Debug" in the left nav and run one of the launch configurations.