learn_hyper_with_golang

module
v0.0.0-...-38fbdb4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2022 License: Apache-2.0

README

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

Directories

Path Synopsis
day1
gobyexample
In the previous example we looked at setting up a simple [HTTP server](http-servers).
In the previous example we looked at setting up a simple [HTTP server](http-servers).
day2
ex4
Examplo structs
Examplo structs
ex6
ex7
day3
ex1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL