SlideShare a Scribd company logo
Coding with Golang
October 21st, 6-7PM
Sign in
What is a GDSC?
Google Developer Student Clubs
We’re open to all majors!
If you would like to join GDSC at
UCF, it’s easy! The linked slide deck
has all of our socials, calendar,
mailing list, a step-by-step guide on
joining Bevy (our Google-created
RSVP site), and more!
tinyurl.com/gdsc-ucf-join-in
Want to Join GDSC?
Coding with golang
https://linktr.ee/knighthacks
linktr.ee/knighthacks
Knight Hacks
Meet today’s speakers
Hannah Moss
GDSC UCF - Lead/President
Alice Yu
GDSC UCF - VP/Co-Lead
Andrei Gulapa
GDSC UCF - Marketing Lead
Coding with golang
What is Golang/ Go?
● Golang or..Go?
○ go.org was not available → golang.org!
○ “Golang” == “Go” (but the actual language is called
Go!)
● Created by Google in 2007
● Open source programming language
Uses
Companies using Go
● Easy to learn! Syntax is clean and simple
● Fast and secure
● Garbage collection
● Easy concurrency model
Pros
● No generics
● Poor library support
● Time-consuming to write
Cons
Hello World!
- Packages
- Imports
- Functions / main
- All material is pulled from https://tour.golang.org/welcome/1 (Official Go website)
Syntax -
Let’s do some math!
- Imports
- Exports
- All material is pulled from https://tour.golang.org/welcome/1 (Official Go website)
Syntax -
Let’s do some math!
- Functions
-
Syntax -
Let’s do some math!
- Shortened function parameters
-
Syntax -
Swappy swap
- Multiple return types
- All material is pulled from https://tour.golang.org/welcome/1 (Official Go website)
Syntax -
Practice time!
- Let’s code up a split number function!
- Split the number 17 into 2 numbers
-
Syntax -
Practice time!
- What is the return type?
- Shorten this function’s return
parameters
-
Syntax -
Practice time!
- What is the return type?
- Shorten this function’s return
parameters
-
Syntax -
Let’s talk about variables!
- Declaring
- All material is pulled from https://tour.golang.org/welcome/1 (Official Go website)
Syntax -
Let’s talk about variables!
- Initializing
- If we wanted to initialize var i, j to 1 and 2,
what would it look like?
- All material is pulled from https://tour.golang.org/welcome/1 (Official Go website)
Syntax -
Let’s talk about variables!
- Initializing
- If we wanted to initialize var i, j to 1 and 2,
what would it look like?
- All material is pulled from https://tour.golang.org/welcome/1 (Official Go website)
Syntax -
Let’s talk about variables!
- Short var declarations
- Used frequently
- All material is pulled from https://tour.golang.org/welcome/1 (Official Go website)
Syntax -
Loops
- For loops
- What does a typical for loop
parameter look like for int i for
(i < 10) comparisons?
- What if we used a shortened var
initialization to initialize i? What
would it look like?
Syntax -
Loops
- For loops
- All material is pulled from https://tour.golang.org/welcome/1 (Official Go website)
Syntax -
Loops
- While loop
- Basically a shorted for loop
- All material is pulled from https://tour.golang.org/welcome/1 (Official Go website)
Syntax -
If statements
Syntax -
If statements
You can shorten if statements that
have preconditions
Syntax -
How can you replicate the Sqrt
function?
You’ll need to use a for loop
and declare extra variables!
Template:
Square roots
Time for your own
practice! Brain teaser
https://tour.golang.org/flowcontrol/8
Discord Setup Steps - Overview
1. Set Up Discord Server
2. Create a new Discord Application -
https://discord.com/developers/applications
a. Create a new Discord Bot
3. Connect the Bot to your Server
Let’s Dive in!!
Let’s Build A Discord Bot
Repl.it Setup Steps - Overview
1. Create a new Repl within Repl.it
https://replit.com/
2. Import discordgo library : github.com/bwmarrin/discordgo
3. Add Discord bot’s token to repl
Let’s Dive in!!
Let’s Build A Discord Bot
Coding Time!
Let’s Build A Discord Bot
Coding with Golang
Sign in
Thank you!

More Related Content

PPTX
Introduction to GoLang
PPTX
Go. Why it goes
PDF
Golang 101
PDF
Introduction to Go programming language
PDF
Go language presentation
PDF
Golang and Eco-System Introduction / Overview
PDF
Why you should care about Go (Golang)
PDF
The Go programming language - Intro by MyLittleAdventure
Introduction to GoLang
Go. Why it goes
Golang 101
Introduction to Go programming language
Go language presentation
Golang and Eco-System Introduction / Overview
Why you should care about Go (Golang)
The Go programming language - Intro by MyLittleAdventure

What's hot (20)

PPTX
Go Programming language, golang
PPTX
Introduction to go lang
PPTX
Go Language presentation
PPTX
Golang - Overview of Go (golang) Language
PDF
Go Lang Tutorial
PPTX
Go Programming Language (Golang)
PDF
PPTX
Golang (Go Programming Language)
PDF
Go Programming Language by Google
PDF
Golang
PDF
GoLang Introduction
PDF
Concurrency With Go
PDF
Goroutines and Channels in practice
PPTX
golang_getting_started.pptx
PPT
Introduction to Go programming
PDF
Introduction to Go language
PDF
Asynchronous JavaScript Programming
PPTX
Write microservice in golang
PPSX
Golang getting started
Go Programming language, golang
Introduction to go lang
Go Language presentation
Golang - Overview of Go (golang) Language
Go Lang Tutorial
Go Programming Language (Golang)
Golang (Go Programming Language)
Go Programming Language by Google
Golang
GoLang Introduction
Concurrency With Go
Goroutines and Channels in practice
golang_getting_started.pptx
Introduction to Go programming
Introduction to Go language
Asynchronous JavaScript Programming
Write microservice in golang
Golang getting started
Ad

Similar to Coding with golang (20)

PDF
Getting started with go - Florin Patan - Codemotion Milan 2016
PDF
Getting started with Go - Florin Patan - Codemotion Rome 2017
PDF
Golang
PDF
Mobile Apps by Pure Go with Reverse Binding
PPTX
Me&g@home
PDF
Go for Mobile Games
PDF
iTHome Gopher Day 2017: What can Golang do? (Using project 52 as examples)
PDF
Adopt OpenJDK presentation (slide deck)
PDF
Feelin' Groovy: A Groovy Developer in the Java World
PPTX
The case for Web components - Drupal4Gov webinar
PDF
Develop Android/iOS app using golang
PPTX
The webs and it's future.
PDF
Android is going to Go! - Android and goland - Almog Baku
PDF
Android is going to Go! Android and Golang
PDF
Javascript as a target language - GWT kickoff - part1/2
PDF
Develop Android app using Golang
PDF
Using Go in DevOps
PDF
Natalie Pistunovich - Using Go In Dev Ops
PDF
Google Assistant Overview
PDF
Oracle GoldenGate Studio Intro
Getting started with go - Florin Patan - Codemotion Milan 2016
Getting started with Go - Florin Patan - Codemotion Rome 2017
Golang
Mobile Apps by Pure Go with Reverse Binding
Me&g@home
Go for Mobile Games
iTHome Gopher Day 2017: What can Golang do? (Using project 52 as examples)
Adopt OpenJDK presentation (slide deck)
Feelin' Groovy: A Groovy Developer in the Java World
The case for Web components - Drupal4Gov webinar
Develop Android/iOS app using golang
The webs and it's future.
Android is going to Go! - Android and goland - Almog Baku
Android is going to Go! Android and Golang
Javascript as a target language - GWT kickoff - part1/2
Develop Android app using Golang
Using Go in DevOps
Natalie Pistunovich - Using Go In Dev Ops
Google Assistant Overview
Oracle GoldenGate Studio Intro
Ad

Recently uploaded (20)

PDF
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Advanced Soft Computing BINUS July 2025.pdf
PDF
madgavkar20181017ppt McKinsey Presentation.pdf
PDF
Chapter 2 Digital Image Fundamentals.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Modernizing your data center with Dell and AMD
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
Empathic Computing: Creating Shared Understanding
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Electronic commerce courselecture one. Pdf
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
NewMind AI Monthly Chronicles - July 2025
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Diabetes mellitus diagnosis method based random forest with bat algorithm
The Rise and Fall of 3GPP – Time for a Sabbatical?
Advanced Soft Computing BINUS July 2025.pdf
madgavkar20181017ppt McKinsey Presentation.pdf
Chapter 2 Digital Image Fundamentals.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Modernizing your data center with Dell and AMD
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
Empathic Computing: Creating Shared Understanding
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Reach Out and Touch Someone: Haptics and Empathic Computing
Electronic commerce courselecture one. Pdf
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Dropbox Q2 2025 Financial Results & Investor Presentation
NewMind AI Monthly Chronicles - July 2025

Coding with golang

  • 1. Coding with Golang October 21st, 6-7PM Sign in
  • 2. What is a GDSC? Google Developer Student Clubs
  • 3. We’re open to all majors! If you would like to join GDSC at UCF, it’s easy! The linked slide deck has all of our socials, calendar, mailing list, a step-by-step guide on joining Bevy (our Google-created RSVP site), and more! tinyurl.com/gdsc-ucf-join-in Want to Join GDSC?
  • 6. Meet today’s speakers Hannah Moss GDSC UCF - Lead/President Alice Yu GDSC UCF - VP/Co-Lead Andrei Gulapa GDSC UCF - Marketing Lead
  • 8. What is Golang/ Go? ● Golang or..Go? ○ go.org was not available → golang.org! ○ “Golang” == “Go” (but the actual language is called Go!) ● Created by Google in 2007 ● Open source programming language
  • 11. ● Easy to learn! Syntax is clean and simple ● Fast and secure ● Garbage collection ● Easy concurrency model Pros
  • 12. ● No generics ● Poor library support ● Time-consuming to write Cons
  • 13. Hello World! - Packages - Imports - Functions / main - All material is pulled from https://tour.golang.org/welcome/1 (Official Go website) Syntax -
  • 14. Let’s do some math! - Imports - Exports - All material is pulled from https://tour.golang.org/welcome/1 (Official Go website) Syntax -
  • 15. Let’s do some math! - Functions - Syntax -
  • 16. Let’s do some math! - Shortened function parameters - Syntax -
  • 17. Swappy swap - Multiple return types - All material is pulled from https://tour.golang.org/welcome/1 (Official Go website) Syntax -
  • 18. Practice time! - Let’s code up a split number function! - Split the number 17 into 2 numbers - Syntax -
  • 19. Practice time! - What is the return type? - Shorten this function’s return parameters - Syntax -
  • 20. Practice time! - What is the return type? - Shorten this function’s return parameters - Syntax -
  • 21. Let’s talk about variables! - Declaring - All material is pulled from https://tour.golang.org/welcome/1 (Official Go website) Syntax -
  • 22. Let’s talk about variables! - Initializing - If we wanted to initialize var i, j to 1 and 2, what would it look like? - All material is pulled from https://tour.golang.org/welcome/1 (Official Go website) Syntax -
  • 23. Let’s talk about variables! - Initializing - If we wanted to initialize var i, j to 1 and 2, what would it look like? - All material is pulled from https://tour.golang.org/welcome/1 (Official Go website) Syntax -
  • 24. Let’s talk about variables! - Short var declarations - Used frequently - All material is pulled from https://tour.golang.org/welcome/1 (Official Go website) Syntax -
  • 25. Loops - For loops - What does a typical for loop parameter look like for int i for (i < 10) comparisons? - What if we used a shortened var initialization to initialize i? What would it look like? Syntax -
  • 26. Loops - For loops - All material is pulled from https://tour.golang.org/welcome/1 (Official Go website) Syntax -
  • 27. Loops - While loop - Basically a shorted for loop - All material is pulled from https://tour.golang.org/welcome/1 (Official Go website) Syntax -
  • 29. If statements You can shorten if statements that have preconditions Syntax -
  • 30. How can you replicate the Sqrt function? You’ll need to use a for loop and declare extra variables! Template: Square roots Time for your own practice! Brain teaser https://tour.golang.org/flowcontrol/8
  • 31. Discord Setup Steps - Overview 1. Set Up Discord Server 2. Create a new Discord Application - https://discord.com/developers/applications a. Create a new Discord Bot 3. Connect the Bot to your Server Let’s Dive in!! Let’s Build A Discord Bot
  • 32. Repl.it Setup Steps - Overview 1. Create a new Repl within Repl.it https://replit.com/ 2. Import discordgo library : github.com/bwmarrin/discordgo 3. Add Discord bot’s token to repl Let’s Dive in!! Let’s Build A Discord Bot
  • 33. Coding Time! Let’s Build A Discord Bot
  • 34. Coding with Golang Sign in Thank you!