Git Product home page Git Product logo

go_lang_basics's Introduction

GoLangBasics

Golang Notes from multiple sources.

Pre-requisite to understand the content

  • Knows any other programming language basics

Using Golang 1.16

Introduction to the language

Go is a general purpose programming language. It is open source. It is NOT an object-oriented programming language. Due to its concurrency feature it is ideal for multi-core and networked machines. Best suited for modular software designs. Compiles very quickly and performs runtime reflection. Developed by Google in 2007, announced in 2009 and stable version released in 2015. Go is a case sensitive language.
Go is not an Object Oriented Programming Language.

Installing Go

Go can be downloaded from https://golang.org/dl/ . The installer will append PATH variable of the system with the directory path to go/bin. By default, the working directory is taken as $HOME/go. It set it something different from the convention, an environment variable GOPATH needs to be created. For detailed steps for installation instructions, follow this link https://golang.org/doc/install .

Go CLI commands

Building a go file, creates an executable file, with the same name as the go file, in the same location. Suppose the script is main.go. The executable can be executed in mac by writing ./main and in windows by main.exe. Some of the frequently used commands are:

  • go build: compiles go sources files.
  • go run: compiles and executes one or two files.
  • go fmt: formats all files in current directory.
  • go install: compiles and install a packages.
  • go get: downloads the raw source code of third party packages.
  • go test: runs any tests associated with current project.

Contents of the repository

hello, data_structure, and conditionals contain scripts based on the concepts learned.

http_interface, interface contain scripts based on the concepts learned.

There are some more scripts in the single_page_scripts directory. The file names are kept intuitive.
Cards is a simple project for dealing a set of cards.
Knowledge Check contains some logics that can challenge the reader's understanding.

go_lang_basics's People

Contributors

code-lucidal58 avatar

Stargazers

 avatar

Watchers

 avatar

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.