Skip to content

Its a basic level repo for getting started with go lang and its concepts.

Notifications You must be signed in to change notification settings

ankurrai1/getting_started_GO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started With GO

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.

Installing Go


Click on above GO OFFICIAL link will take to golang official site. click on GO OFFICIAL DOWNLOAD PAGE for go official download page and select your Operating 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 folders src ,pkg and bin.

after above go to your src folder and create your app folder and start coding :)

To Run golang file

go run <file_name>

Other commands are as following

usage

go <commands> [arguments]

Some Basic Commands


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

For help


"go help <topic>"

First Program

Hello World

Some Concepts code links


Some Examples Code Links



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.

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages