Developing Go on Windows with WSL2

preview_player
Показать описание
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:

Installing Go:

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
Рекомендации по теме
Комментарии
Автор

Thanks a lot. This was the only video that explained clearly the process of installing go through WSL. This cleared out all my doubts. Very well explained.

kajalkhirodkar
Автор

I just discovered this channel, will be binge watching. And, subbed.

esra_erimez
Автор

hey look who is back. I have been waiting so long for your video hope everything is all ok with you.

najamawan
Автор

So much better than several other videos/walkthroughs!

JRSkola
Автор

This video helped me a lot! Thank you.

nellystanford
Автор

Hey Nic, glad to see your videos.
Loved your microservice playlist, if possible do add more videos. Thanks much?
😎😎😎😎

hoangduyang
Автор

This is really helpful, even if just jumping in for a chapter here and there.

che_coelho
Автор

Great video helped me a lot. During the test I noticed that the "hello Word" is on the same line in the terminal because you are using the 'Fprint()' command which does not have a line break, if you use 'Fprintln()' the line break will happen normally.

GilbertoTheves
Автор

Hey Nic, glad to see your videos.
Loved your microservice playlist, if possible do add more videos. Thanks much.

AdarshSingh-bjsm
Автор

This is wonderful. Thank you very much Nic.

nshavotwala
Автор

Thanks and very well explained. Keep the good work

alfredoolmedo
Автор

Welcome back Nic!.. Kindly asking for a video on go routines

omaroobaniessa
Автор

Thank you very much! I like how you explain all the little commands aswell!

TheFentonz
Автор

wow... this is so clear... man, thank you.

Bagas
Автор

Thanks for posting again and I hope you are doing well Nic. Your videos have been really helpful for me!

mnreal
Автор

Hello Nic, as always really nice video, thank you!

filipeandrade
Автор

WASL2 is awesome! been using it since a while now and it's very convenient.

AkhilSharmaTech
Автор

I finally got through the installation of go, thanks man.

OmarMendozaKS
Автор

Thanks Nick, this was really helpful was able to setup everything and now I develop on my Windows machine as well. Very well explained.

aakashwork
Автор

I want to become an distributed system engineer like you . thanks for video ^^

baole