
Explore building a content management system as a set of microservices, including an analytics and authentication dashboard, an API for data, real-time chat, notifications, and automated deployment.
Install Go and its development tools, configure the Go path and system path, choose a text editor, and run a hello world program to verify setup.
Create a simple Go static file server by declaring package main, importing net/http and os, getting the current directory, and serving its contents with http.FileServer and http.ListenAndServe in 11 lines.
Learn to accept command line arguments in Go with the flag package, defining and parsing path and port flags, including dereferencing pointers to access values for serving a directory.
Build a statically linked binary with go build and go install, then run it from anywhere using the go bin directory. Build for other platforms by setting GOOS and GOARCH.
Learn to render dynamic content with Go by organizing code into packages, loading HTML templates from a directory, using a data struct, and printing the rendered output to the console.
Build a Go web server that renders dynamic templates, routes get and post requests, and processes form data to display posts and pages.
Connect to the postscripts database from a Go app using the pq driver, create and read page records, and render them with templates.
Learn to write and run go test, create _test.go files, and use the testing package with reflect to validate database IDs and struct equality.
Learn to build Go http middleware using variadic functions, function chaining, and callbacks; implement summing arguments, chaining state with methods, and integrating next handlers for pre- and post-processing.
Go: building 7 real-world projects teaches you to implement time-based middleware in Go to measure request latency, log analytics to a file, and monitor performance.
Utilize Go middleware error handling with defer, recover, and panics to recover calls via a recovery middleware, and use error switches to distinguish invalid ID or invalid email errors.
Learn advanced middleware in Go by using the context package to pass data between middleware and HTTP handlers, implement interfaces, and access context values in HTTP responses.
Learn to securely store usernames and passwords by hashing and salting with bcrypt, protect a map with a read-write mutex, enforce unique usernames, and verify credentials.
Implement a password reset flow in Go by generating secure random tokens, base64-encoding them, sending reset emails with a Gmail SMTP server, and updating the user password after token validation.
Learn to build a simple go session-based authentication using bolt as a persistent store, creating and retrieving sessions with cookies, login and restricted routes, and notes on security and alternatives.
Implement sessionless, passwordless authentication via a third-party open authorization standard with Google as the sign-in provider, issuing a JWT containing sub, exp, and iat.
Learn three core web security practices—content sanitization, safe input handling to prevent XSS and SQL injection, and CSRF protection with gorilla csrf middleware—plus TLS key setup for https.
Learn to build a REST API in Go that marshals and unmarshals JSON, reads HTTP requests, writes JSON responses with a proper content-type, and interacts with CMS pages and posts.
Explore streaming JSON encoding and decoding in Go, replacing marshal with encoders for HTTP responses and request decoding, and compare streaming performance through benchmarks.
Learn to stream data into a byte buffer and reuse a buffer pool in Go, handle encoder errors before writing to the client, and boost performance.
Upload and display images in Go, handling multipart form data and saving files to an images directory. Secure image uploads by preventing path traversal risks.
Explore concurrency in Go by using routines and channels to communicate between goroutines, compare sequential versus concurrent execution, and see performance gains from concurrent task execution.
build a simple tcp chat server in Go that starts as an echo server and evolves to broadcast messages to all connected clients using routines and channels.
Build an advanced chat server in Go using a hub and hop to manage connections, broadcast messages via websockets, upgrade http to websocket, and serve the chat app.
Learn to use web sockets to build real-time chat notifications with a Go server, handling post requests in json or form data and updating client unread counts.
Explore deployment options for go applications, contrasting bare metal and platform approaches, and walk through a deployment on a Digital Ocean droplet, including go installation and testing on port 80.
Learn to automate go app deployments by scripting production setups, using supervisor for background processes, configuring ports, and enabling secure ssh-based updates and restarts.
Learn how to implement continuous integration for Go projects by automatically testing and deploying after commits using Semaphore, including linking your repository and configuring deployment commands.
Study go debugging with delve and the race detector, set breakpoints, inspect variables, fix JSON decoding errors like missing ampersand, and identify race conditions in concurrent code.
Explore how reflection lets a program inspect its own structure, access type information via the reflect package, and test struct equality with references, noting the performance trade-off in Go.
Profile a simple Go http server with pprof, inspect memory, garbage collection, and blocking routines via /debug/pprof, and identify hot functions using top10.
If you’re a programmer wanting to build scalable projects, this course is for you. Or if you’re a gopher with an interest in how the language can be applied in interesting ways, this course will meet your need.
Google's Go is among the favorites to build software that is reliable and efficient. It simplifies the whole developing process. In short, Go is the language of the Internet age.
Go: Building 7 Real-World Projects exists as a blend of text, videos, code examples, and assessments, which together makes your learning and creating journey all the more fun and worth the cost.
This course takes a project-based approach. It starts with the installation but quickly takes you into app building. You’ll create a content management system (CMS) build up of smaller microservices. Then, move on to move on to performing testing and debugging. This will ensure you're accustomed with the complete journey of an app creation before moving on to building the next projects.
Once, you’ve experienced project building, move on to the next one. Explore how easy building command-line tools is in Go and puts those skills to use to tackle the problem of finding the perfect domain name for our chat application. Then, prepare for the future of democracy by building a highly scalable Twitter polling and vote counting engine powered by NSQ and MongoDB. In the next project, expose capabilities through a JSON web service.
Further on, learn how to consume the Google Places API to generate a location-based random recommendations API that represents a fun way to explore any area. In the next project, build a simple but powerful filesystem backup tool for your code projects. Finally, build the API backend for a question and answer service similar to Stack Overflow or Quora.
By the end of the course, you’ll be ready to create start-up standard projects.
The goal of this course is to make you a skilled Go programmer.
This course is authored by some of the best in the field.
Ben Tranter
Ben Tranter is a developer with nearly six years’ experience. He has worked with a variety of companies to build applications in Go, in the areas of data mining, web back ends, user authentication services, and developer tools, and is a contributor to a variety of open source Go projects.
Rostislav Dzinko
Rostislav Dzinko is a software architect who has been working in the software development industry for more than six years. He was one of the first developers who started working with the Go language far earlier than the first official public release of Go 1.0 took place.
Mat Ryer
Mat Ryer has been programming computers since he was 6 years old; he and his father would build games and programs, first in BASIC on a ZX Spectrum and then in AmigaBASIC and AMOS on Commodore Amiga. Many hours were spent on manually copying the code from Amiga Format magazine and tweaking variables or moving GOTO statements around to see what might happen.
Mat is a regular speaker at Go conferences around the world and encourages people to come up and introduce themselves if their paths ever cross.