Build Your First Command Line Tool in Go


Learn how to build a command line tool in Go, package it, and upload it to GitHub releases.

Resources: https://www.digitalocean.com/community/tech_talks/build-your-first-command-line-tool-in-go

0:00 Welcome!
3:35 Agenda
6:00 Hello world
8:47 Flags library

Implement a dice rolling CLI tool
10:32 Roll a dX
15:17 RegEx
24:20 Roll multiple die
30:18 Roll with advantage, disadvantage, and summation

More on Go
31:03 Efficient coding: using a variable in Go functions
37:34 Go: The Complete Developer’s Guide, by Stephen Grider
38:23 deploy conference for global development teams: https://deploy.digitalocean.com
39:56 Backwards compatibility: Go
41:43 Set up GoReleaser to build binary
51:24 Set up GoReleaser to release binary

Presented By
Mason Egger, Senior Developer Advocate, DigitalOcean [Twitter: @masonegger]

– – – – – – – – – –

New to DigitalOcean? Get US $100 in credit when you sign up: https://do.co/build​​​​

Learn and gain inspiration with DigitalOcean Tech Talks: https://www.digitalocean.com/community/tags/tech-talks

Subscribe to the DigitalOcean YouTube channel:
https://www.youtube.com/digitalocean?sub_confirmation=1

Write for DOnations — Share your knowledge and get paid, while supporting tech-focused nonprofits and charities:
https://www.digitalocean.com/community/pages/write-for-digitalocean

– – – – – – – – – –

About DigitalOcean
The DigitalOcean Developer Cloud™ simplifies modern app creation for new generations of developers working independently, at tech startups, and within small-to-medium sized businesses around the world.

#DOTechTalks #Go #CLI


Duration: 01:02:11
Publisher: DigitalOcean
You can watch this video also at the source.