Join David Gassner for an in-depth discussion in this video Exploring Go command-line tools, part of Learning Go.
- Before I get into an in depth tour…of the actual Go language,…I will show you the actual executable commands…that are installed on your computer.…There are three commands in the Go\bin directory:…go, godoc, and gofmt.…I will start with the godoc command.…Godoc is similar to Java's Javadoc.…It extracts and displays documentation…for Go packages.…If I type godoc and then the name…of a Go package, I will see all of the documentation…for that package.…
I will use the fmt package,…which has all of the functions for formatting…and outputting strings.…This documentation that's listed on this screen…includes all the names and signatures…of functions and complete information…about how they are supposed to be used.…The documentation is actually…in the language's source code files,…and the godoc command extracts it from there…to create the documentation files…you see on the Go website.…If you type godoc by itself…without any arguments, you will see a listing…of all of its sub-commands to analyze…and extract the documentation.…
- Installing Go tools
- Creating and compiling a Go workspace
- Exploring variables, constants, and types
- Storing ordered and unordered values
- Grouping related values in structs
- Programming conditional logic and loops
- Defining and calling functions
- Handling errors
- Working with files
- Creating a simple HTTP server
Skill Level Beginner
1. Getting Started
2. Essential Go Skills
3. Managing Simple Values
4. Managing Complex Types and Collections
5. Managing Program Flow
6. Structuring Go Code
7. Working with Files and the Web
Next steps2m 26s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.