Skip to content

kohirens/stdlib

Repository files navigation

Kohirens STDLIB

A library of reusable code.

Status Badges

CircleCI

Setup Local Development.

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.

Run Docker

  1. Clone this repository.
  2. In a command prompt, run: docker-compose -f .docker/docker-compose.yml up
  3. In another command prompt, login to the container: docker exec -it stdlib_dev_1 sh
  4. Execute a command such as go test
    ~/src/github.com/kohirens/stdlib $ go test
    PASS
    ok      github.com/kohirens/stdlib      0.004s
    

Run with VS Code

  1. Install the VS code extension "Remote Container".
  2. Clone this repository locally.
  3. Open the project in VS Code, which should ask to open the folder in a remote container.
  4. Open a terminal in VS Code and type go test.
  5. Now got to "Run and Debug" in the left nav and run one of the launch configurations.