Skip to content

Santiagus/Golang

Repository files navigation

Golang Playground to keep track of related projects.

Objetive is to save ready to run projects/code for future reference or use it as tutorials.

First projects are based on https://go.dev/doc/tutorial/

Following instructions are for Linux OS

  • Remove previous installation
    rm -rf /usr/local/go
  • Download last file from go.dev/dl/
    wget https://go.dev/dl/go1.21.5.linux-amd64.tar.gz
  • Install
    tar -C /usr/local -xzf go1.21.5.linux-amd64.tar.gz
  • Add /usr/local/go/bin to the PATH environment variable. \
    echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
  • Apply changes
    source ~/.bashrc
  • Check installation
    go version
    Output go version go1.21.5 linux/amd64

Repo Organization

Number prefix increase with project complexity/size.

Folders named by frameworks contain examples of those, and will follow same prefix pattern than root Golang folder.

A README.md file can be (usually) find in each folder with breaf indications to reproduce the example from scratch.

Example:

Golang
│   ├── 00_HelloWorld
│   ├── 01_Packages
│   │   ├── README.md

Common tools used among projects in the repo

IDE

Source Control

Build/Package Tool

  • Integrated tools (go build)

Continuous Integration

Code Formatting / Naming

Testing

PROFILING

Code Coverage Analysis

About

Golan Playground

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages