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
Ad

More Related Content

What's hot (20)

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

Viewers also liked (20)

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

Similar to Golang online course (20)

Programming concepts By ZAK
Programming concepts By ZAKProgramming concepts By ZAK
Programming concepts By ZAK
Tabsheer Hasan
 
program fundamentals using python1 2 3 4.pptx
program fundamentals using python1 2 3 4.pptxprogram fundamentals using python1 2 3 4.pptx
program fundamentals using python1 2 3 4.pptx
ibrahimsoryjalloh91
 
C Programming Unit-1
C Programming Unit-1C Programming Unit-1
C Programming Unit-1
Vikram Nandini
 
Unit 2 introduction to c programming
Unit 2   introduction to c programmingUnit 2   introduction to c programming
Unit 2 introduction to c programming
Mithun DSouza
 
Language design and translation issues
Language design and translation issuesLanguage design and translation issues
Language design and translation issues
Dr. SURBHI SAROHA
 
How a Compiler Works ?
How a Compiler Works ?How a Compiler Works ?
How a Compiler Works ?
Hirdesh Vishwdewa
 
C programming course material
C programming course materialC programming course material
C programming course material
Ranjitha Murthy
 
Introduction of c programming unit-ii ppt
Introduction of  c programming unit-ii pptIntroduction of  c programming unit-ii ppt
Introduction of c programming unit-ii ppt
JStalinAsstProfessor
 
Introduction to C Programming fjhjhjh.pptx
Introduction to C Programming fjhjhjh.pptxIntroduction to C Programming fjhjhjh.pptx
Introduction to C Programming fjhjhjh.pptx
RoselinLourd
 
c & c++ logic building concepts practice.pptx
c & c++ logic building concepts practice.pptxc & c++ logic building concepts practice.pptx
c & c++ logic building concepts practice.pptx
rawatsatish0327
 
C language ppt
C language pptC language ppt
C language ppt
Ğäùråv Júñêjå
 
Presentation c++
Presentation c++Presentation c++
Presentation c++
JosephAlex21
 
Switch case and looping statement
Switch case and looping statementSwitch case and looping statement
Switch case and looping statement
_jenica
 
Pc module1
Pc module1Pc module1
Pc module1
SANTOSH RATH
 
Intro in understanding to C programming .pptx
Intro in understanding to C   programming .pptxIntro in understanding to C   programming .pptx
Intro in understanding to C programming .pptx
abadinasargie
 
Intro in understanding to C programming .pptx
Intro in understanding to C   programming .pptxIntro in understanding to C   programming .pptx
Intro in understanding to C programming .pptx
abadinasargie
 
490450755-Chapter-2.ppt
490450755-Chapter-2.ppt490450755-Chapter-2.ppt
490450755-Chapter-2.ppt
ManiMala75
 
490450755-Chapter-2.ppt
490450755-Chapter-2.ppt490450755-Chapter-2.ppt
490450755-Chapter-2.ppt
ManiMala75
 
C++ Introduction to basic C++ IN THIS YOU WOULD KHOW ABOUT BASIC C++
C++ Introduction to basic C++ IN THIS YOU WOULD KHOW ABOUT BASIC C++C++ Introduction to basic C++ IN THIS YOU WOULD KHOW ABOUT BASIC C++
C++ Introduction to basic C++ IN THIS YOU WOULD KHOW ABOUT BASIC C++
sanatahiratoz0to9
 
04. WORKING WITH FUNCTIONS-2 (1).pptx
04. WORKING WITH FUNCTIONS-2 (1).pptx04. WORKING WITH FUNCTIONS-2 (1).pptx
04. WORKING WITH FUNCTIONS-2 (1).pptx
Manas40552
 
Programming concepts By ZAK
Programming concepts By ZAKProgramming concepts By ZAK
Programming concepts By ZAK
Tabsheer Hasan
 
program fundamentals using python1 2 3 4.pptx
program fundamentals using python1 2 3 4.pptxprogram fundamentals using python1 2 3 4.pptx
program fundamentals using python1 2 3 4.pptx
ibrahimsoryjalloh91
 
Unit 2 introduction to c programming
Unit 2   introduction to c programmingUnit 2   introduction to c programming
Unit 2 introduction to c programming
Mithun DSouza
 
Language design and translation issues
Language design and translation issuesLanguage design and translation issues
Language design and translation issues
Dr. SURBHI SAROHA
 
C programming course material
C programming course materialC programming course material
C programming course material
Ranjitha Murthy
 
Introduction of c programming unit-ii ppt
Introduction of  c programming unit-ii pptIntroduction of  c programming unit-ii ppt
Introduction of c programming unit-ii ppt
JStalinAsstProfessor
 
Introduction to C Programming fjhjhjh.pptx
Introduction to C Programming fjhjhjh.pptxIntroduction to C Programming fjhjhjh.pptx
Introduction to C Programming fjhjhjh.pptx
RoselinLourd
 
c & c++ logic building concepts practice.pptx
c & c++ logic building concepts practice.pptxc & c++ logic building concepts practice.pptx
c & c++ logic building concepts practice.pptx
rawatsatish0327
 
Switch case and looping statement
Switch case and looping statementSwitch case and looping statement
Switch case and looping statement
_jenica
 
Intro in understanding to C programming .pptx
Intro in understanding to C   programming .pptxIntro in understanding to C   programming .pptx
Intro in understanding to C programming .pptx
abadinasargie
 
Intro in understanding to C programming .pptx
Intro in understanding to C   programming .pptxIntro in understanding to C   programming .pptx
Intro in understanding to C programming .pptx
abadinasargie
 
490450755-Chapter-2.ppt
490450755-Chapter-2.ppt490450755-Chapter-2.ppt
490450755-Chapter-2.ppt
ManiMala75
 
490450755-Chapter-2.ppt
490450755-Chapter-2.ppt490450755-Chapter-2.ppt
490450755-Chapter-2.ppt
ManiMala75
 
C++ Introduction to basic C++ IN THIS YOU WOULD KHOW ABOUT BASIC C++
C++ Introduction to basic C++ IN THIS YOU WOULD KHOW ABOUT BASIC C++C++ Introduction to basic C++ IN THIS YOU WOULD KHOW ABOUT BASIC C++
C++ Introduction to basic C++ IN THIS YOU WOULD KHOW ABOUT BASIC C++
sanatahiratoz0to9
 
04. WORKING WITH FUNCTIONS-2 (1).pptx
04. WORKING WITH FUNCTIONS-2 (1).pptx04. WORKING WITH FUNCTIONS-2 (1).pptx
04. WORKING WITH FUNCTIONS-2 (1).pptx
Manas40552
 
Ad

More from bestonlinecoursescoupon (8)

The world’s top universities real time
The world’s top universities real timeThe world’s top universities real time
The world’s top universities real time
bestonlinecoursescoupon
 
Best software testing course
Best software testing courseBest software testing course
Best software testing course
bestonlinecoursescoupon
 
Apple watch course
Apple watch courseApple watch course
Apple watch course
bestonlinecoursescoupon
 
Best node js course
Best node js courseBest node js course
Best node js course
bestonlinecoursescoupon
 
Best Blender Course
Best Blender CourseBest Blender Course
Best Blender Course
bestonlinecoursescoupon
 
Best javascript course
Best javascript courseBest javascript course
Best javascript course
bestonlinecoursescoupon
 
Best Android Course
Best Android CourseBest Android Course
Best Android Course
bestonlinecoursescoupon
 
R Course Online
R Course OnlineR Course Online
R Course Online
bestonlinecoursescoupon
 

Recently uploaded (20)

Social Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy StudentsSocial Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy Students
DrNidhiAgarwal
 
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 AccountingHow to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
Celine George
 
Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 
SPRING FESTIVITIES - UK AND USA -
SPRING FESTIVITIES - UK AND USA            -SPRING FESTIVITIES - UK AND USA            -
SPRING FESTIVITIES - UK AND USA -
Colégio Santa Teresinha
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Celine George
 
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Library Association of Ireland
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetCBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
Sritoma Majumder
 
How to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POSHow to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POS
Celine George
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public SchoolsK12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
dogden2
 
Biophysics Chapter 3 Methods of Studying Macromolecules.pdf
Biophysics Chapter 3 Methods of Studying Macromolecules.pdfBiophysics Chapter 3 Methods of Studying Macromolecules.pdf
Biophysics Chapter 3 Methods of Studying Macromolecules.pdf
PKLI-Institute of Nursing and Allied Health Sciences Lahore , Pakistan.
 
Sinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_NameSinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_Name
keshanf79
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 
Social Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy StudentsSocial Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy Students
DrNidhiAgarwal
 
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 AccountingHow to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
How to Customize Your Financial Reports & Tax Reports With Odoo 17 Accounting
Celine George
 
Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 
2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx2541William_McCollough_DigitalDetox.docx
2541William_McCollough_DigitalDetox.docx
contactwilliamm2546
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Celine George
 
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Michelle Rumley & Mairéad Mooney, Boole Library, University College Cork. Tra...
Library Association of Ireland
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetCBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
Sritoma Majumder
 
How to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POSHow to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POS
Celine George
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public SchoolsK12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
dogden2
 
Sinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_NameSinhala_Male_Names.pdf Sinhala_Male_Name
Sinhala_Male_Names.pdf Sinhala_Male_Name
keshanf79
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 

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