SlideShare a Scribd company logo
GOLANG
ONLINE
COURSE
bestonlinecoursescoupon.com
CONTENT
About Golang
Designing principles
Environment setup
Program Structure
Tokens
Data types
Constants
Operators
Decision making 
Loop statements
Function
Scope Rules
Arrays
Structures
Pointers 
Range
Recursion
Type casting
Go is an open source programming language which was
originally developed by Google in the year 2007 and Go
programming language was designed by Robert Griesemer,
Ken Thompson, and Rob Pike.
The syntax of this language is similar to C programming
language. Go provides type safety, garbage collection,
dynamic typing capacity and some other advanced built-in
types such as key-value maps and variable length arrays. 
ABOUT GOLANG
DESIGNING PRINCIPLES
This programming language support
interfaces and type embedding.
Go is simple, concise and safety.
Most of the programmers prefer this GO
programming language because the
compilation time is very fast. Some of the
built-in concurrency supports are the
lightweight process, channels, select
statement, and simplicity.
Environment setup
The Go programming environment is already setup in
online. The programmers can compile and execute
your code through online configuration environment.
The important software is text editor and the Go
compiler.
The text editor is used to write your code. Some of the
commonly using text editors are notepad, brief, OS edit
command, etc.
The Go compiler is used to change the source code into
machine language only then the CPU can understand
and execute the program, as per the instructions were
given.
Program
structure 
A complete Go language must have the following
sections such as functions, variables, import packages,
package declaration, comments, and statements &
expressions.
package main
import "fmt"
func main() {
/* This is my first sample program. */
fmt.Println("Hello, World!")
}
example
Tokens 
Go programming language has various
tokens.
A token may be a keyword, constant, symbol,
string literal, identifier.
Data types 
Boolean types: it has two predefined constants such as
true and false.
String types: string is nothing but the set of characters
usually declared within “ ”.
Numeric types: Numeric data type means the
arithmetic types of values are stored in variables.
Derived data types: there are many derived data types
available in Go programming language.
Constants
Constant is nothing but the fixed value.
Once the programmer set a value as constant, then it
will be changed during the time of execution.
The fixed values are often referred as literals.
The literals may be the data types such as integer
constant, the character constant, floating constant,
and the string constant.
Operators
There are various operators in Go programming
language which are used to perform mathematical and
logical operations using operands
Types of operator:arithmetic operator, bitwise
operator, assignment operator, misc operator, logical
operator, and relational operator.
Decision making
Decision making structures are used by the
programmer when they want to test one or more
conditions.
If the given condition is true, some set of statements is
executed sequentially.
Suppose if the condition is false, some other
statements are executed. This is done to attain a
particular task.
Loop Statement
The loop statements are used to perform the same task
for multiple times.
There are various types of loop statements available in
Go programming language are for loop and nested
loop.
The loop control statements such as continue
statement, break statement, and goto statement.
Function
A function is nothing but the collection of statements
working together to attain a particular task.
A perfect function includes some parts such as return
type, function name, parameters, and function body.
The function is also called as the method, sub routine,
and procedure.
While declaring the function, the developer has to
start with func keyword.
Scope
The variables are declared in three places in a
program.
If the variables are declared within the function, then
it is called as local variables, and those variables are
accessed only by the statements inside the function.
If the variables are declared outside the function, then
it is referred as global variables.
Those variables are usually declared at the top of the
program.
Arrays
The array is the data structure provided by the Go
programming language, and the array is nothing but
the collection of similar data types.
In Array, memory allocation is in a contiguous
manner.
The lowest address is the first element, and the higher
order address is the last element in the array.
Structures
The structure is also a user defined data type and
structure is the collection of various data types.
Structure concept is frequently used to present a
record.
The lowest address is the first element, and the higher
order address is the last element in the array.
Format of structure
type struct_variable_type struct {
member definition;
member definition;
...
member definition;
}
Pointers
The pointer is a variable which is used to store the
address value of another variable.
Some of the complex tasks are easily performed using
pointer concept.
Example
package main
import "fmt"
func main() {
var a int = 10
fmt.Printf("Address of a variable: %xn", &a )
}
Range
The range keyword is used in for loop to iterate the
items of slice, channel, array and map.
For array and slices, it returns the index value as the
integer.
For the map, it returns the key of following key value
pair.
Recursion
Go language supports the recursion function which
means the function call by itself.
While using the recursive function, the programmers
should be careful to define the exit condition.
func recursion() {
recursion() /* function calls itself */
}
func main() {
recursion()
}
Type casting
Using cast operator, the developer can convert a
variable from one data type to another data type.
Example:
package main
import "fmt"
func main() {
var sum int = 17
var count int = 5
var mean float32
mean = float32(sum)/float32(count)
fmt.Printf("Value of mean : %fn",mean)
}
GOLANG ONLINE COURSE
Learn How To Code Google’s Go
Programming Language
Develop Real-Time Apps
Google’s Go Programming Language
For Beginners
Learn Golang Programming For
Complete Beginners
GOLANGONLINECOURSE
LinkableLink
Follows Us
BESTONLINECOURSESCOUPON @BEST_COURSESS BESTCOURSES
THANKS
FOR YOUR
TIME!
bestonlinecoursescoupon.com

More Related Content

What's hot (20)

PDF
Dependency management in golang
Ramit Surana
 
PPTX
Developing Cross Platform Applications with Golang
Erhan Yakut
 
PDF
iTHome Gopher Day 2017: What can Golang do? (Using project 52 as examples)
Evan Lin
 
PDF
13 practical tips for writing secure golang applications
Karthik Gaekwad
 
PDF
COSCUP 2016: Project 52 每週一個小專案來學習 Golang
Evan Lin
 
PDF
Building Command Line Tools with Golang
Takaaki Mizuno
 
PDF
用 Go 語言實戰 Push Notification 服務
Bo-Yi Wu
 
PPTX
Golang start and tips
Aaron King
 
PPTX
drone continuous Integration
Bo-Yi Wu
 
PDF
Introduction to GitHub Actions
Bo-Yi Wu
 
PPTX
Wonders of Golang
Kartik Sura
 
PPTX
Introduction to Gitea with Drone
Bo-Yi Wu
 
PPTX
CI/CD with Rancher CLI + Jenkins
Go Chiba
 
PPT
Come With Golang
尚文 曾
 
PPTX
Golang - Overview of Go (golang) Language
Aniruddha Chakrabarti
 
PDF
Rest, sockets em golang
jefferson Otoni Lima
 
PDF
Gitlab ci, cncf.sk
Juraj Hantak
 
PPTX
A painless self-hosted Git service: Gitea
Bo-Yi Wu
 
PDF
(Live) build and run golang web server on android.avi
SeongJae Park
 
Dependency management in golang
Ramit Surana
 
Developing Cross Platform Applications with Golang
Erhan Yakut
 
iTHome Gopher Day 2017: What can Golang do? (Using project 52 as examples)
Evan Lin
 
13 practical tips for writing secure golang applications
Karthik Gaekwad
 
COSCUP 2016: Project 52 每週一個小專案來學習 Golang
Evan Lin
 
Building Command Line Tools with Golang
Takaaki Mizuno
 
用 Go 語言實戰 Push Notification 服務
Bo-Yi Wu
 
Golang start and tips
Aaron King
 
drone continuous Integration
Bo-Yi Wu
 
Introduction to GitHub Actions
Bo-Yi Wu
 
Wonders of Golang
Kartik Sura
 
Introduction to Gitea with Drone
Bo-Yi Wu
 
CI/CD with Rancher CLI + Jenkins
Go Chiba
 
Come With Golang
尚文 曾
 
Golang - Overview of Go (golang) Language
Aniruddha Chakrabarti
 
Rest, sockets em golang
jefferson Otoni Lima
 
Gitlab ci, cncf.sk
Juraj Hantak
 
A painless self-hosted Git service: Gitea
Bo-Yi Wu
 
(Live) build and run golang web server on android.avi
SeongJae Park
 

Viewers also liked (20)

PDF
Microservices in Golang
Mo'ath Qasim
 
PDF
Develop Android app using Golang
SeongJae Park
 
PPTX
Manchester city
ofrancis
 
PPTX
Waldorf Education
xMerodi
 
PPTX
Sap fiori
Anudeep Bhatia
 
PDF
French Property Market 2014
David Bourla
 
PPTX
Medical devices
Somnath Zambare
 
PDF
French Property market 2015 - Cushman & Wakefield
David Bourla
 
PPT
Cerebral Palsy
eKindling.org
 
PPTX
Elon Musk
Miloš Ivković
 
PDF
Simo Ahava - Tag Management Solutions – Best. Data. Ever. MKTFEST 2014
Marketing Festival
 
PDF
The big bang theory
mreedy
 
PDF
Chess
Chuck Vohs
 
PPT
Lionel Messi
NaliKardan
 
PPT
Lionel messi
Dipanker Singh
 
PPTX
David guetta
sam_beecham
 
PPTX
The Big Bang Theory
rose_aries15
 
PPTX
The dodo birds
barnha317
 
PDF
Texas Cloud Brokerage - A Success Story
Ilyas Iyoob, Ph.D.
 
PPTX
The Unanticipated Benefits of Content Curation
Beth Kanter
 
Microservices in Golang
Mo'ath Qasim
 
Develop Android app using Golang
SeongJae Park
 
Manchester city
ofrancis
 
Waldorf Education
xMerodi
 
Sap fiori
Anudeep Bhatia
 
French Property Market 2014
David Bourla
 
Medical devices
Somnath Zambare
 
French Property market 2015 - Cushman & Wakefield
David Bourla
 
Cerebral Palsy
eKindling.org
 
Elon Musk
Miloš Ivković
 
Simo Ahava - Tag Management Solutions – Best. Data. Ever. MKTFEST 2014
Marketing Festival
 
The big bang theory
mreedy
 
Chess
Chuck Vohs
 
Lionel Messi
NaliKardan
 
Lionel messi
Dipanker Singh
 
David guetta
sam_beecham
 
The Big Bang Theory
rose_aries15
 
The dodo birds
barnha317
 
Texas Cloud Brokerage - A Success Story
Ilyas Iyoob, Ph.D.
 
The Unanticipated Benefits of Content Curation
Beth Kanter
 
Ad

Similar to Golang online course (20)

PPTX
Should i Go there
Shimi Bandiel
 
PDF
Golang
Felipe Mamud
 
PDF
Golang and Eco-System Introduction / Overview
Markus Schneider
 
PPT
Introduction to Go ProgrammingLanguage.ppt
PedroAlexandre215482
 
PPTX
Introduction to Go
Lorenzo Aiello
 
PPTX
Go Language Hands-on Workshop Material
Romin Irani
 
PDF
Introduction to Programming in Go
Amr Hassan
 
PPTX
Go programming introduction
Ginto Joseph
 
PDF
The GO programming language
Marco Sabatini
 
PPTX
Go Language Programming Basic Introduction
johnboladevice
 
PPTX
Golang introduction
DineshDinesh131
 
PDF
Go Lang Tutorial
Wei-Ning Huang
 
PDF
golang_refcard.pdf
Spam92
 
PPT
GO programming language
tung vu
 
PDF
Introduction to Go programming language
Slawomir Dorzak
 
PPTX
Go Programming Language (Golang)
Ishin Vin
 
PDF
Lecture 1 - Overview of Go Language 1.pdf
daomaithuhuyen1273
 
PDF
Go Programming by Example_ Nho Vĩnh Share.pdf
Nho Vĩnh
 
PDF
Go_ Get iT! .pdf
Gagan Chouhan
 
PPTX
Golang iran - tutorial go programming language - Preliminary
go-lang
 
Should i Go there
Shimi Bandiel
 
Golang
Felipe Mamud
 
Golang and Eco-System Introduction / Overview
Markus Schneider
 
Introduction to Go ProgrammingLanguage.ppt
PedroAlexandre215482
 
Introduction to Go
Lorenzo Aiello
 
Go Language Hands-on Workshop Material
Romin Irani
 
Introduction to Programming in Go
Amr Hassan
 
Go programming introduction
Ginto Joseph
 
The GO programming language
Marco Sabatini
 
Go Language Programming Basic Introduction
johnboladevice
 
Golang introduction
DineshDinesh131
 
Go Lang Tutorial
Wei-Ning Huang
 
golang_refcard.pdf
Spam92
 
GO programming language
tung vu
 
Introduction to Go programming language
Slawomir Dorzak
 
Go Programming Language (Golang)
Ishin Vin
 
Lecture 1 - Overview of Go Language 1.pdf
daomaithuhuyen1273
 
Go Programming by Example_ Nho Vĩnh Share.pdf
Nho Vĩnh
 
Go_ Get iT! .pdf
Gagan Chouhan
 
Golang iran - tutorial go programming language - Preliminary
go-lang
 
Ad

More from bestonlinecoursescoupon (8)

PDF
The world’s top universities real time
bestonlinecoursescoupon
 
PDF
Best software testing course
bestonlinecoursescoupon
 
PDF
Apple watch course
bestonlinecoursescoupon
 
PDF
Best node js course
bestonlinecoursescoupon
 
PDF
Best Blender Course
bestonlinecoursescoupon
 
PDF
Best javascript course
bestonlinecoursescoupon
 
PDF
Best Android Course
bestonlinecoursescoupon
 
PDF
R Course Online
bestonlinecoursescoupon
 
The world’s top universities real time
bestonlinecoursescoupon
 
Best software testing course
bestonlinecoursescoupon
 
Apple watch course
bestonlinecoursescoupon
 
Best node js course
bestonlinecoursescoupon
 
Best Blender Course
bestonlinecoursescoupon
 
Best javascript course
bestonlinecoursescoupon
 
Best Android Course
bestonlinecoursescoupon
 
R Course Online
bestonlinecoursescoupon
 

Recently uploaded (20)

PPTX
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 
PPTX
Ward Management: Patient Care, Personnel, Equipment, and Environment.pptx
PRADEEP ABOTHU
 
PPTX
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
PPTX
ENGlish 8 lesson presentation PowerPoint.pptx
marawehsvinetshe
 
PPTX
How to Configure Re-Ordering From Portal in Odoo 18 Website
Celine George
 
PPTX
Different types of inheritance in odoo 18
Celine George
 
PDF
Horarios de distribución de agua en julio
pegazohn1978
 
PDF
Lean IP - Lecture by Dr Oliver Baldus at the MIPLM 2025
MIPLM
 
PPTX
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
PPTX
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
PPTX
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
PPTX
ENG8_Q1_WEEK2_LESSON1. Presentation pptx
marawehsvinetshe
 
PPTX
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
PDF
epi editorial commitee meeting presentation
MIPLM
 
PPTX
Light Reflection and Refraction- Activities - Class X Science
SONU ACADEMY
 
PPTX
Lesson 1 Cell (Structures, Functions, and Theory).pptx
marvinnbustamante1
 
PPTX
Introduction to Indian Writing in English
Trushali Dodiya
 
PDF
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
PPTX
Marketing Management PPT Unit 1 and Unit 2.pptx
Sri Ramakrishna College of Arts and science
 
PDF
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
 
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 
Ward Management: Patient Care, Personnel, Equipment, and Environment.pptx
PRADEEP ABOTHU
 
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
ENGlish 8 lesson presentation PowerPoint.pptx
marawehsvinetshe
 
How to Configure Re-Ordering From Portal in Odoo 18 Website
Celine George
 
Different types of inheritance in odoo 18
Celine George
 
Horarios de distribución de agua en julio
pegazohn1978
 
Lean IP - Lecture by Dr Oliver Baldus at the MIPLM 2025
MIPLM
 
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
ENG8_Q1_WEEK2_LESSON1. Presentation pptx
marawehsvinetshe
 
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
epi editorial commitee meeting presentation
MIPLM
 
Light Reflection and Refraction- Activities - Class X Science
SONU ACADEMY
 
Lesson 1 Cell (Structures, Functions, and Theory).pptx
marvinnbustamante1
 
Introduction to Indian Writing in English
Trushali Dodiya
 
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
Marketing Management PPT Unit 1 and Unit 2.pptx
Sri Ramakrishna College of Arts and science
 
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
 

Golang online course

  • 2. CONTENT About Golang Designing principles Environment setup Program Structure Tokens Data types Constants Operators Decision making  Loop statements Function Scope Rules Arrays Structures Pointers  Range Recursion Type casting
  • 3. Go is an open source programming language which was originally developed by Google in the year 2007 and Go programming language was designed by Robert Griesemer, Ken Thompson, and Rob Pike. The syntax of this language is similar to C programming language. Go provides type safety, garbage collection, dynamic typing capacity and some other advanced built-in types such as key-value maps and variable length arrays.  ABOUT GOLANG
  • 4. DESIGNING PRINCIPLES This programming language support interfaces and type embedding. Go is simple, concise and safety. Most of the programmers prefer this GO programming language because the compilation time is very fast. Some of the built-in concurrency supports are the lightweight process, channels, select statement, and simplicity.
  • 5. Environment setup The Go programming environment is already setup in online. The programmers can compile and execute your code through online configuration environment. The important software is text editor and the Go compiler. The text editor is used to write your code. Some of the commonly using text editors are notepad, brief, OS edit command, etc. The Go compiler is used to change the source code into machine language only then the CPU can understand and execute the program, as per the instructions were given.
  • 6. Program structure  A complete Go language must have the following sections such as functions, variables, import packages, package declaration, comments, and statements & expressions. package main import "fmt" func main() { /* This is my first sample program. */ fmt.Println("Hello, World!") } example
  • 7. Tokens  Go programming language has various tokens. A token may be a keyword, constant, symbol, string literal, identifier.
  • 8. Data types  Boolean types: it has two predefined constants such as true and false. String types: string is nothing but the set of characters usually declared within “ ”. Numeric types: Numeric data type means the arithmetic types of values are stored in variables. Derived data types: there are many derived data types available in Go programming language.
  • 9. Constants Constant is nothing but the fixed value. Once the programmer set a value as constant, then it will be changed during the time of execution. The fixed values are often referred as literals. The literals may be the data types such as integer constant, the character constant, floating constant, and the string constant.
  • 10. Operators There are various operators in Go programming language which are used to perform mathematical and logical operations using operands Types of operator:arithmetic operator, bitwise operator, assignment operator, misc operator, logical operator, and relational operator.
  • 11. Decision making Decision making structures are used by the programmer when they want to test one or more conditions. If the given condition is true, some set of statements is executed sequentially. Suppose if the condition is false, some other statements are executed. This is done to attain a particular task.
  • 12. Loop Statement The loop statements are used to perform the same task for multiple times. There are various types of loop statements available in Go programming language are for loop and nested loop. The loop control statements such as continue statement, break statement, and goto statement.
  • 13. Function A function is nothing but the collection of statements working together to attain a particular task. A perfect function includes some parts such as return type, function name, parameters, and function body. The function is also called as the method, sub routine, and procedure. While declaring the function, the developer has to start with func keyword.
  • 14. Scope The variables are declared in three places in a program. If the variables are declared within the function, then it is called as local variables, and those variables are accessed only by the statements inside the function. If the variables are declared outside the function, then it is referred as global variables. Those variables are usually declared at the top of the program.
  • 15. Arrays The array is the data structure provided by the Go programming language, and the array is nothing but the collection of similar data types. In Array, memory allocation is in a contiguous manner. The lowest address is the first element, and the higher order address is the last element in the array.
  • 16. Structures The structure is also a user defined data type and structure is the collection of various data types. Structure concept is frequently used to present a record. The lowest address is the first element, and the higher order address is the last element in the array. Format of structure type struct_variable_type struct { member definition; member definition; ... member definition; }
  • 17. Pointers The pointer is a variable which is used to store the address value of another variable. Some of the complex tasks are easily performed using pointer concept. Example package main import "fmt" func main() { var a int = 10 fmt.Printf("Address of a variable: %xn", &a ) }
  • 18. Range The range keyword is used in for loop to iterate the items of slice, channel, array and map. For array and slices, it returns the index value as the integer. For the map, it returns the key of following key value pair.
  • 19. Recursion Go language supports the recursion function which means the function call by itself. While using the recursive function, the programmers should be careful to define the exit condition. func recursion() { recursion() /* function calls itself */ } func main() { recursion() }
  • 20. Type casting Using cast operator, the developer can convert a variable from one data type to another data type. Example: package main import "fmt" func main() { var sum int = 17 var count int = 5 var mean float32 mean = float32(sum)/float32(count) fmt.Printf("Value of mean : %fn",mean) }
  • 21. GOLANG ONLINE COURSE Learn How To Code Google’s Go Programming Language Develop Real-Time Apps Google’s Go Programming Language For Beginners Learn Golang Programming For Complete Beginners GOLANGONLINECOURSE LinkableLink