GithubHelp home page GithubHelp logo

ankurrai1 / getting_started_go Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 130 KB

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

Go 100.00%
routine switch-case gopath race-condition golang loop panic iota golang-examples concept getting-started go

getting_started_go's Introduction

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.

getting_started_go's People

Contributors

ankurrai1 avatar prem17101996 avatar rishabh8960 avatar sagargarg27 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

nityak123

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.