♫musicjinni

Developing Go on Windows with WSL2

video thumbnail
In this video, I show you how to set up Windows for developing Go applications with WSL2. You will learn how to install WSL2 and Ubuntu on Windows and how you can use it and Visual Studio Code for developing Go applications.

Understanding Linux and the common workflow and tools are essential when developing microservices as it is the environment that your code will ultimately be deployed to. WSL2 allows you to bring the best of Windows while running the power of Linux under the covers. In my humble opinion, this is the best way to write Go code on Windows and a method I use every day.

We will walk through all the steps of installing the software and setting up your environment before testing things out by creating a simple Go web application. This video is not intended to be a comprehensive introduction to Go or Linux but shows you the best way for developing Go code on Windows.

Installing WSL on Windows:
https://docs.microsoft.com/en-us/windows/wsl/install-win10

Installing Go:
https://golang.org/doc/install

Chapters:
00:00 Introduction
03:25 Enabling WSL for Widows
04:58 Enabling Virtual Machine Platform for Windows
05:55 Updating the WSL2 Kernel
06:33 Setting WSL2 as the default for new Linux distributions
07:42 Installing Ubuntu on Windows
11:26 Installing Visual Studio Code
13:58 Installing Go
20:24 Installing VS Code Go Extension
21:12 Creating a simple application
29:45 Using Go packages

VScode for Golang [2022] Simple setup!

Setup development environment on Windows: WSL2 + Go + VSCode + Docker + Make + Sqlc

How to Run Go[Golang] on Visual Studio Code

vscode debug golang code from wsl2

How to Set Up Go Development in Visual Studio Code on Windows 11 | VSCode Golang Development Basics

Developing Go on Windows with WSL2

I Coded with WSL2 for a Week

Setting up Go (Golang) work environment on Windows, Linux and VS Code #go #golang

how to install golang in WSL2 Ubuntu 20.04 speedup

Install `Go` VSCode Remote Extension for Ubuntu WSL2

how to upgrade golang in WSL2

Go Tutorial (Golang) 2 - Setup Go Development Environment with Visual Studio Code(VS Code )

How to debug GO program with visual studio code

VScode for Golang - How to setup Visual Studio Code for Go [2020]

0. Effortless GoLang Setup in VSCode on Windows

How To Debug VSCode with Go (Golang)

Install Go in WSL in 3 easy steps | Go 1.18 + Generics

Getting started with VS Code Go

Debugging Golang CLI files with Visual Studio Code

How to install Go on Windows 11 using WSL 2

If you're not developing with this, you're wasting your time

How to Run Go in Visual Studio Code on Windows 10 2022

open vscode from wsl 2

How to debug Go Web App using VS Code?

My Windows Dev Setup in 2022 (Windows Subsystem for Linux)

My Favorite Way To Handle Dev Environments | VS Code Devcontainers

Compile and Run Go Code Using WSL 2 and GoLand 2021.1

Get Started with Dev Containers in VS Code

Microsoft FINALLY killed it

Camp Code: Week 2 - Go Installation + VSCode Tutorial #GOLANG

Disclaimer DMCA