Skip to content

Latest commit

 

History

History
92 lines (61 loc) · 1.83 KB

README.md

File metadata and controls

92 lines (61 loc) · 1.83 KB

Gopher

Description

Learning Golang by examples with TDD

  • Using vscode with devcontainer (+docker-compose)
  • Integrated Github Actions CI/CD (build and test) (with docker-compose)

Requirements

Windows

Install WSL with Ubuntu 20.04: https://ubuntu.com/wsl

Windows (WSL + Ubuntu 20.04) / Linux (Ubuntu 20.04+)

Initial setup

sudo apt update
  • GIT
sudo apt install git
  • Docker
sudo apt install docker docker-compose
sudo usermod -a -G docker $USER
sudo apt install gconf2 gconf-service libappindicator1

No windows seguir o tutorial

wget -c https://github.com/DockStation/dockstation/releases/download/v1.5.1/dockstation_1.5.1_amd64.deb
sudo dpkg -i dockstation_1.5.1_amd64.deb

Initial Setup

git clone https://github.com/lucribas/learn_hyper_with_golang.git
cd learn_hyper_with_golang

day 1

cd day1
code .
# Open in with Dev Containers extension

References:

https://github.com/0xAX/go-algorithms

https://www.youtube.com/watch?v=NF1pwjL9-DE&ab_channel=Computerphile https://www.youtube.com/watch?v=NmM9HA2MQGI&ab_channel=Computerphile

https://github.com/avelino/awesome-go


new directory:

mkdir exX cd exX add your file.go go mod init example.com/day2/ex7/server go mod tidy go work use .

go run file.go