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
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 -
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