SlideShare a Scribd company logo
An Ultimate GopherLabs
Hands-on Labs
• Docker Community Leader , Bangalore
• Author :- lightweight Kubernetes with k3s
with packt Publication
• Gopherlabs – 200+ tutorials
• Okteto – Kubernetes For Developer , Bangalore
Meetup Organizer
Who Am I?
@BiradarSangam
Sangam Biradar
EngineITops.com
Every go file begins with a package name. The name of the
package must be the same as the folder name except for
package main. Package main is the entry point for your
program.
The “fmt” package is being imported.
If you are using code from other packages, you list the
packages that you want to import. This allows you to use
code in your program that other people have written.
Packages are also sometimes referred to as libraries.
A parameter is the variable which is part of the
func’s signature (func declaration). An argument
is an expression used when calling the func.
source: modified from stackoverflow
This function is declared with no (choose one):
● parameters
● arguments
“Hello world” is an example of a literal (choose one):
● parameter
● argument
https://play.golang.org/p/-N_yGtploWl
The func main() is the entry point for your program; the first code
that will run. The package main can also have other functions
besides func main().
An expression specifies the computation of a value by
applying operators and functions to operands. source:
effective go
Code from the “fmt” package is being used. Println is a function
declared in the “fmt” package. For a function to be accessible to
other packages, it must be Capitalized. This is analogous to
“public” in other languages.
The “fmt” package is being imported.
Every go file begins with a package name. The name of the
package must be the same as the folder name except for
the main package. The main package is the entry point for
your program.
If you are using code from other packages, you list the
packages that you want to import. This allows you to use
code in your program that other people have written.
Packages are also sometimes referred to as libraries.
https://play.golang.org/p/-N_yGtploWl
● go build and go run
● go build main.go
● go run main.go
http://www.quora.com/Whats-the-difference-between-a-statement-and-an-expression-in-Python
kikstart journey of Golang with Hello world - Gopherlabs
● Review Questions
● What is the purpose of package main in a go
program?
● What function must package main contain?
● Can package main contain a function called
func blueSky() ?
● What makes a func accessible outside a
package?
● Review Questions
● Parameters vs Arguments - What is the
difference between the two?
● Expressions vs Statements- What is the
difference between the two?
● Variable, Constant, Literal –
- Define the three concepts above.
- Give an example of a literal from the
“hello world” example.
● Review Questions
● Build “hello go” in your editor
● Use go run from the command line to make
your “hello go” program execute
● Go build does what when run on a folder
containing package main?
● Go build does what when run on a folder
containing a library package?
● Go Install
● Go install does what when run on a folder
containing package main?
● Go install does what when run on a folder
containing a library package?
● References
● https://gopherlabs.collabnix.com
● https://godoc.org/
● https://golang.org/doc/
● https://collabnix.github.io/gopherlabs/Beginner
s/hello-world.html
Thanks!
Any questions?
@sangambiradar@BiradarSangamSangam Biradar

More Related Content

PDF
Decision making - for loop , nested loop ,if-else statements , switch in goph...
PDF
funcs, func expressions, closure, returning funcs, recursion, the stack -goph...
PDF
Types - slice, map, new, make, struct - Gopherlabs
PPTX
Golang basics for Java developers - Part 1
PPTX
Wonders of Golang
PDF
Dependency management in golang
PPT
Come With Golang
PDF
Golang from Scala developer’s perspective
Decision making - for loop , nested loop ,if-else statements , switch in goph...
funcs, func expressions, closure, returning funcs, recursion, the stack -goph...
Types - slice, map, new, make, struct - Gopherlabs
Golang basics for Java developers - Part 1
Wonders of Golang
Dependency management in golang
Come With Golang
Golang from Scala developer’s perspective

What's hot (20)

PDF
10 reasons to be excited about go
PPTX
Golang - Overview of Go (golang) Language
PDF
GoLang Introduction
PDF
Inroduction to golang
PDF
Golang
PPTX
PDF
SciPipe - A light-weight workflow library inspired by flow-based programming
PDF
Vagrant, Ansible and Docker - How they fit together for productive flexible d...
PDF
Golang workshop
PDF
Golang online course
PPTX
Optimizing and Profiling Golang Rest Api
PDF
A gentle intro to Golang and the Go-universe
PDF
Go Programming Language by Google
PPTX
Developing Cross Platform Applications with Golang
PDF
Coding with golang
PDF
Golang preso
PDF
Mphasis Digital - Use Go (gloang) for system programming, distributed systems...
PDF
Latex with git
PDF
Go from PHP engineer's perspective
10 reasons to be excited about go
Golang - Overview of Go (golang) Language
GoLang Introduction
Inroduction to golang
Golang
SciPipe - A light-weight workflow library inspired by flow-based programming
Vagrant, Ansible and Docker - How they fit together for productive flexible d...
Golang workshop
Golang online course
Optimizing and Profiling Golang Rest Api
A gentle intro to Golang and the Go-universe
Go Programming Language by Google
Developing Cross Platform Applications with Golang
Coding with golang
Golang preso
Mphasis Digital - Use Go (gloang) for system programming, distributed systems...
Latex with git
Go from PHP engineer's perspective
Ad

Similar to kikstart journey of Golang with Hello world - Gopherlabs (20)

PDF
Introduction to golang
PDF
Go for SysAdmins - LISA 2015
PDF
OSCON2014 : Quick Introduction to System Tools Programming with Go
PPTX
Golang iran - tutorial go programming language - Preliminary
PDF
Getting Started with Go
PPTX
Lab1GoBasicswithgo_foundationofgolang.pptx
PDF
Go_ Get iT! .pdf
PDF
Go Programming by Example_ Nho Vĩnh Share.pdf
PPSX
Fundamentals of Golang
PDF
Finding a useful outlet for my many Adventures in go
PDF
Trivadis TechEvent 2016 Go - The Cloud Programming Language by Andija Sisko
PPTX
Go programing language
PDF
Introduction to Programming in Go
PPTX
Should i Go there
PDF
Introduction to Go
PDF
The GO programming language
PPTX
The GO Language : From Beginners to Gophers
PDF
Building Awesome CLI apps in Go
PPTX
Go Programming language, golang
PDF
Happy Go Programming Part 1
Introduction to golang
Go for SysAdmins - LISA 2015
OSCON2014 : Quick Introduction to System Tools Programming with Go
Golang iran - tutorial go programming language - Preliminary
Getting Started with Go
Lab1GoBasicswithgo_foundationofgolang.pptx
Go_ Get iT! .pdf
Go Programming by Example_ Nho Vĩnh Share.pdf
Fundamentals of Golang
Finding a useful outlet for my many Adventures in go
Trivadis TechEvent 2016 Go - The Cloud Programming Language by Andija Sisko
Go programing language
Introduction to Programming in Go
Should i Go there
Introduction to Go
The GO programming language
The GO Language : From Beginners to Gophers
Building Awesome CLI apps in Go
Go Programming language, golang
Happy Go Programming Part 1
Ad

More from sangam biradar (17)

PDF
Terrascan - Cloud Native Security Tool
PDF
Dockerize Spago Self Contained ML & NLP Library & Deploy on Okteto Cloud Usin...
PDF
XCloudLabs- AWS Overview
PDF
Rustlabs Quick Start
PDF
Okteto For Kubernetes Developer :- Container Camp 2020
PDF
Happy Helming With Okteto
PDF
5 cool ways to get started with Cloud Native Development ( with Okteto)
PDF
Docker + Tenserflow + GOlang - Golang singapore Meetup
PPTX
Cloud Native Okteto Cloud
PDF
Google ko: fast Kubernetes microservice development in Go - Sangam Biradar, E...
PDF
welcome to gopherlabs - why go (golang)?
PDF
Rabncher Meetup India , Lightweight Kubernetes Development with K3s, k3os and...
PDF
TensorFlow, Docker & GoLang - All for Image Rekognition Sangam Biradar(Engine...
PDF
Introducing Pico - A Deep Learning Platform using Docker & IoT - Sangam Biradar
PDF
September 7, 2019 Cloud Native and Containerisation (Joint Meetup with Docke...
PPTX
Implementing Lightweight Kubernetes(K3s) on Raspberry Pi Stack - Sangam Biradar
PDF
Docker on IOT - Dockercon19 SFO Recap & Announcements, Bangalore
Terrascan - Cloud Native Security Tool
Dockerize Spago Self Contained ML & NLP Library & Deploy on Okteto Cloud Usin...
XCloudLabs- AWS Overview
Rustlabs Quick Start
Okteto For Kubernetes Developer :- Container Camp 2020
Happy Helming With Okteto
5 cool ways to get started with Cloud Native Development ( with Okteto)
Docker + Tenserflow + GOlang - Golang singapore Meetup
Cloud Native Okteto Cloud
Google ko: fast Kubernetes microservice development in Go - Sangam Biradar, E...
welcome to gopherlabs - why go (golang)?
Rabncher Meetup India , Lightweight Kubernetes Development with K3s, k3os and...
TensorFlow, Docker & GoLang - All for Image Rekognition Sangam Biradar(Engine...
Introducing Pico - A Deep Learning Platform using Docker & IoT - Sangam Biradar
September 7, 2019 Cloud Native and Containerisation (Joint Meetup with Docke...
Implementing Lightweight Kubernetes(K3s) on Raspberry Pi Stack - Sangam Biradar
Docker on IOT - Dockercon19 SFO Recap & Announcements, Bangalore

Recently uploaded (20)

PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
cuic standard and advanced reporting.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Approach and Philosophy of On baking technology
PPTX
Cloud computing and distributed systems.
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
NewMind AI Weekly Chronicles - August'25 Week I
Spectral efficient network and resource selection model in 5G networks
Network Security Unit 5.pdf for BCA BBA.
cuic standard and advanced reporting.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Empathic Computing: Creating Shared Understanding
Understanding_Digital_Forensics_Presentation.pptx
Review of recent advances in non-invasive hemoglobin estimation
Dropbox Q2 2025 Financial Results & Investor Presentation
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Encapsulation_ Review paper, used for researhc scholars
Mobile App Security Testing_ A Comprehensive Guide.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
MIND Revenue Release Quarter 2 2025 Press Release
Advanced methodologies resolving dimensionality complications for autism neur...
Approach and Philosophy of On baking technology
Cloud computing and distributed systems.
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx

kikstart journey of Golang with Hello world - Gopherlabs

  • 2. • Docker Community Leader , Bangalore • Author :- lightweight Kubernetes with k3s with packt Publication • Gopherlabs – 200+ tutorials • Okteto – Kubernetes For Developer , Bangalore Meetup Organizer Who Am I? @BiradarSangam Sangam Biradar EngineITops.com
  • 3. Every go file begins with a package name. The name of the package must be the same as the folder name except for package main. Package main is the entry point for your program. The “fmt” package is being imported. If you are using code from other packages, you list the packages that you want to import. This allows you to use code in your program that other people have written. Packages are also sometimes referred to as libraries. A parameter is the variable which is part of the func’s signature (func declaration). An argument is an expression used when calling the func. source: modified from stackoverflow
  • 4. This function is declared with no (choose one): ● parameters ● arguments “Hello world” is an example of a literal (choose one): ● parameter ● argument https://play.golang.org/p/-N_yGtploWl
  • 5. The func main() is the entry point for your program; the first code that will run. The package main can also have other functions besides func main(). An expression specifies the computation of a value by applying operators and functions to operands. source: effective go Code from the “fmt” package is being used. Println is a function declared in the “fmt” package. For a function to be accessible to other packages, it must be Capitalized. This is analogous to “public” in other languages. The “fmt” package is being imported. Every go file begins with a package name. The name of the package must be the same as the folder name except for the main package. The main package is the entry point for your program. If you are using code from other packages, you list the packages that you want to import. This allows you to use code in your program that other people have written. Packages are also sometimes referred to as libraries. https://play.golang.org/p/-N_yGtploWl
  • 6. ● go build and go run ● go build main.go ● go run main.go
  • 9. ● Review Questions ● What is the purpose of package main in a go program? ● What function must package main contain? ● Can package main contain a function called func blueSky() ? ● What makes a func accessible outside a package?
  • 10. ● Review Questions ● Parameters vs Arguments - What is the difference between the two? ● Expressions vs Statements- What is the difference between the two? ● Variable, Constant, Literal – - Define the three concepts above. - Give an example of a literal from the “hello world” example.
  • 11. ● Review Questions ● Build “hello go” in your editor ● Use go run from the command line to make your “hello go” program execute ● Go build does what when run on a folder containing package main? ● Go build does what when run on a folder containing a library package?
  • 12. ● Go Install ● Go install does what when run on a folder containing package main? ● Go install does what when run on a folder containing a library package?
  • 13. ● References ● https://gopherlabs.collabnix.com ● https://godoc.org/ ● https://golang.org/doc/ ● https://collabnix.github.io/gopherlabs/Beginner s/hello-world.html