This folder consists of only basic code without app level implimentation and big logic which helps to understand the basic syntax of language. Basically we can say that it is Core Go Repo.
Click on above
GO OFFICIAL
link will take to golang official site. click onGO OFFICIAL DOWNLOAD PAGE
for go official download page and select yourOperating System
and follow installation process after Download.
it automatically set GOPATH to root, to check run this in terminal or cmd
go env GOPATH
to know what is current GOPATH
Go to path folder and create directory with name go
mkdir go
(to create directory) under this you have to create three other folderssrc
,pkg
andbin
.
after above go to your
src
folder and create your app folder and start coding :)
go run <file_name>
go <commands> [arguments]
bug start a bug report
build compile packages and dependencies
clean remove object files and cached files
doc show documentation for package or symbol
env print Go environment information
fix update packages to use new APIs
fmt go fmt (reformat) package sources
generate generate Go files by processing source
get add dependencies to current module and install them
install compile and install packages and dependencies
list list packages or modules
mod module maintenance
run compile and run Go program
test test packages
tool run specified go tool
version print Go version
vet report likely mistakes in packages
"go help <topic>"
- Variable
- Variable more deeply
- Constants
- Conditions
- Switch Case
- Arrays And Slices
- Array And Loop
- Map
- Struct
- Functions
- Pointer
- iota Example
- iota Usage
- Concept of defer
- Defer use case with files
- Defer use case with net/http
- Panic
- Panic use case with net/http
- recovery
- Method use case
- Interface
- Interface with Int
- Interface with Buffer
- Go Routine
- Go Routine with WaitGroup
- Go Routine with Race Condition
- Channels
- Mutex solution for Race condition
- Threads
- Basic Calculator Example
- Sum and Subtraction
- Area and Perimeter of Rectangle
- Switch Case
- Marriage Eligibility Test
- Print N Num By Using Loop
- Print Table of Any Number
- Sum & Average of 10 Numbers
- Structure Examples
- Structure Example 2
- Factorial
- To get Reverse of a Number
- To get average of Numbers
There is not dependency for this repo and it is opne to everey one just clone and make a copy of it for you There is only one thing required to run each file independently is you must have go install in your local machine Go installation instruction is given in top of this file itself.