Join David Gassner for an in-depth discussion in this video Creating and compiling a Go workspace, part of Learning Go.
- To create applications that require more than a single…source code file, you'll need to set up a Go workspace…with a complete directory structure that has…strictly defined subdirectory names.…Because the primary goal of this course is to get…you started with Go syntax, I'll mostly be sticking…with the simpler run and build commands,…but it's important to know how to manage more…complex applications.…I'll start in a command prompt, and I'm going to create…a directory that will be my workspace.…
On Windows, I'll create it under my root directory.…On Mac or Linux, you might consider creating it…in your home or documents directory.…I'll make a directory named, "gowork."…This directory can be named anything you like,…but it can't include any spaces or special characters.…I'll switch to that directory, and then I'll create…these three subdirectories, and these do have to be named…exactly as I'm showing them.…The first one is "src" for "source."…That's where your source code files will go.…
Next is "bin" for "binaries," and that's where…
- 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.