golang-development

command module
v0.0.0-...-82c4727 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

Golang-Development

Go Development Projects

Install Go

Install GO In linux

GOVERSION="1.15.7"
sudo wget https://dl.google.com/go/go${GOVERSION}.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go${GOVERSION}.linux-amd64.tar.gz
sudo rm go${GOVERSION}.linux-amd64.tar.gz

Test and verify installation:

/usr/local/go/bin/go version

You should see

go version go1.15.5 linux/amd64

Run Go Code

Test Sample Code

go run hello.go

Build Go Code

Test Sample Code

go build hello.go

after the build, execute

./hello

Errors & Troubleshooting

  • driver/slack.go:8:2: cannot find package
go get -d

Setting Module Settings:

go env -w  GO111MODULE=on
go env -w  GO111MODULE=off

Setting Go Pull from Private Repository

go env -w GOPRIVATE=github.com/repoURL/private-repo
go env -w GOPRIVATE=github.com/<OrgNameHere>/*

Rerouting http to ssh

git config --global url."git@github.com:".insteadOf "https://github.com/"
git config --global url."git@bitbucket.org:".insteadOf "https://bitbucket.org/"

Build Status: Code Build Status

Resources & Reference

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
convert_mins_secs
Convert Minutes to Seconds
Convert Minutes to Seconds
golang_tools
console_code
Testing out command line arguments ./console-code.go <arg1> <arg2>
Testing out command line arguments ./console-code.go <arg1> <arg2>
input_output
function to add and return sum
function to add and return sum
projects

Jump to

Keyboard shortcuts

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