GOLANG

Go programming language is an open source project to make programmers more productive. Go is expressive, concise, clean, and efficient. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel type system enables flexible and modular program construction. Go compiles quickly to machine code yet has the convenience of garbage collection and the power of run-time reflection. It’s a fast, statically typed, compiled language that feels like a dynamically typed, interpreted language.

SYLLABUS:

GO PROGRAMMING – ENVIRONMENT SETUP

 

  • Try it Option Online
  • Local Environment Setup
  • Text Editor
  • The Go Compiler
  • Download Go Archive
  • Installation on UNIX/Linux/Mac OS X, and FreeBSD
  • Installation on Windows
  • Verifying the Installation

 

GO PROGRAMMING – PROGRAM STRUCTURE

 

  • Hello World Example
  • Executing a Go Program

 

GO PROGRAMMING – BASIC SYNTAX

 

  • Tokens in Go
  • Line Separator
  • Comments
  • Identifiers
  • Keywords
  • Whitespace

 

GO PROGRAMMING – DATA TYPES

 

  • Integer Types
  • Floating Types
  • Other Numeric Types

 

 GO PROGRAMMING – VARIABLES

 

  • Variable Definition in Go
  • Static Type Declaration in Go
  • Dynamic Type Declaration / Type Inference in Go
  • Mixed Variable Declaration in Go
  • The lvalues and the rvalues in Go

 

GO PROGRAMMING – CONSTANTS

 

  • Integer Literals
  • Floating-point Literals
  • Escape Sequence
  • String Literals in Go
  • The const Keyword

 

GO PROGRAMMING – OPERATORS

 

  • Arithmetic Operators
  • Relational Operators
  • Logical Operators
  • Bitwise Operators
  • Assignment Operators
  • Miscellaneous Operators

 

GO PROGRAMMING – DECISION MAKING

 

  • The if Statement
  • The if…else Statement
  • Nested if Statement
  • The Switch Statement
  • The Select Statement
  • The ..else if…else Statement

 

GO PROGRAMMING – LOOPS

 

  • for Loop
  • Nested for Loops
  • Loop Control Statements
  • The continue Statement
  • The goto Statement
  • The Infinite Loop

 

GO PROGRAMMING – FUNCTIONS

 

  • Defining a Function
  • Calling a Function
  • Returning Multiple Values from Function
  • Function Arguments
  • Call by Value
  • Call by Reference
  • Function Usage
  • Function Closures
  • Method

 

GO PROGRAMMING – STRINGS

 

  • Creating Strings
  • String Length
  • Concatenating Strings

 

GO PROGRAMMING – ARRAYS

 

  • Declaring Arrays
  • Initializing Arrays
  • Accessing Array Elements
  • Go Arrays in Detail
  • Multidimensional Arrays in Go
  • Two-Dimensional Arrays
  • Initializing Two-Dimensional Arrays
  • Accessing Two-Dimensional Array Elements
  • Passing Arrays to Functions

GO PROGRAMMING – POINTERS

  • What Are Pointers?
  • How to Use Pointers
  • Nil Pointers in Go
  • Go Pointers in Detail
  • Go – Array of Pointers
  • Go – Pointer to Pointer
  • Go – Passing Pointers to Functions

GO PROGRAMMING – STRUCTURES

 

  • Defining a Structure
  • Accessing Structure Members
  • Structures as Function Arguments
  • Pointers to Structures

GO PROGRAMMING – SLICES

  • Defining a slice
  • len() and cap() functions
  • Nil slice
  • Subslicing
  • append() and copy() Functions

 

GO PROGRAMMING – RANGE

 GO PROGRAMMING – MAPS

  • Defining a Map
  • delete() Function

 GO PROGRAMMING – RECURSION

 GO PROGRAMMING – TYPE CASTING

 GO PROGRAMMING – INTERFACES

 GO PROGRAMMING – ERROR HANDLING