Go lang
Install
Installing GO lang
Programs
read csv file
find variable type in golang
for loops in golang
MongoDB sort() Method
MongoDB Find
MongoDB FindOne
differences between arrays and slices
InsertOne MongoDB
Connecting to MongoDB
how to use range in golang
Modules
Create a Go module
Create app using Go Module

Installing GO Programming language in Linux



Download Go installer from the below path

https://go.dev/dl/go1.18.1.linux-amd64.tar.gz


Extract the downloaded archive into /usr/local, creating a Go tree in /usr/local/go with below command


sudo tar -C /usr/local -xzf go1.18.1.linux-amd64.tar.gz

Update Go to your environment profile


Open ~/.bashrc with vi, and add the following, and save it.


export GOROOT=/usr/local/go-1.18
export GOPATH=$HOME/projects/go
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
export PATH=$PATH:$HOME/projects/go/bin

Reload the bash profile with the following command


source ~/.bashrc

And check if go is installed successfully:


go version


how to use range in golang

how to use range in golang

posted on 2022-05-03 08:28:11 - Go lang Tutorials


find variable type in golang

find variable type in golang

posted on 2022-05-03 05:24:55 - Go lang Tutorials


for loops in golang

for loops in golang

posted on 2022-05-03 04:27:40 - Go lang Tutorials


Prompt Examples

ChatGPT Prompt Examples

posted on 2023-06-21 22:37:19 - ChatGPT Tutorials


Use Cases

Chat GPT Key Use Cases

posted on 2023-06-21 21:03:17 - ChatGPT Tutorials


Prompt Frameworks

Prompt Frameworks

posted on 2023-06-21 19:33:06 - ChatGPT Tutorials