Skip to content

ContainerSolutions/golang-learning-cloud-crew

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golang-learning-cloud-crew

A repo to play around with golang

Install GoLang

Linux

  1. Copy the download link from the official golang website https://go.dev/doc/install

  2. Download the tarball e.g.

    https://go.dev/dl/go1.20.linux-amd64.tar.gz
    
  3. Delete prvious versions of the tarball and extract this new one

    rm -rf /usr/local/go && tar -C /usr/local -xzf go1.20.linux-amd64.tar.gz
    
  4. Add Go binary to path

    export PATH=$PATH:/usr/local/go/bin
    
  5. Check that installation was successful

    go version
    

Go CLI commands

  • go run hello.go - executes the hello app

  • go get <library-url> - downloads the library

  • go build . - compiles the app using the current platform architecture; you can specify which platform to compile for (linux, windows, mac, etc)

  • go mod tidy - literally to tidy up; clears unused libraries

About

A repo to play around with golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages