MedUnes / noise-go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Noise Go

tests

  • This repo is meant to provide a startup development boilerplate for Go projects
  • It also comes with a container-first mindset
  • Last but not least, it contains github actions for some of the common tasks, kind of minimal CI/CD

Docker shortcut commands

Build

$ make build

Login

$ make login

Down

$ make down

Status

$ make status

Stop

$ make stop

Restart

$ make restart

Logs

$ make logs

Build Go app from host

$ make gbuild

Run Go app from host

$ make run

Working with Visual Studio Code

Prequisites


Connecting to container

  • Open one terminal tab, and run the following command (Crtl + Shift + P) Dev Containers: Open Folder in Container...


  • Select the folder that contains the project, in this example it is noise-php
  • Visual Studio Code should start connecting to the container
  • Set a breakpoint on one line of the code of the main function
  • Press on F5 (or go to Run -> Start Debugging )
  • That's all, now you see the orang line highliting your breakpoint line of code, and you can proceede line by line by pressing the F10 button
  • To stop debugging, press Shift + F5

About

License:MIT License


Languages

Language:Dockerfile 68.3%Language:Makefile 19.2%Language:Go 12.4%