If we’ve never used the go command before, it’s possible that you don’t have Go installed on our machine yet.įortunately, the Go developer documentation has a great installation guide. This means that you need to compile your code before you can run it. Like many other languages, Go is a compiled language. Got that configured? Great! Let’s get started! Setting up Go on your machine I personally use Ubuntu 20.04, but you can use any of the distributions that are available. You have a Linux Distribution installed.You have Windows Subsystem for Linux (WSL) installed.I’m going to make some assumptions about your environment. More on that in another post though! Pre-requisites For example, the net/http package contains code for working with HTTP requests and responses. A package is a collection of related code. Go heavily relies on the concept of packages. It’s in the top 15 most popular languages from the 2021 Stack Overflow Developer Survey. You’ll be familiar with several of the projects that it powers, including Hugo, Docker, Terraform, Kubernetes and more. Go was originally developed by Google in 2007, and is now maintained by the Go team. However, there are a few additional language functions (particularly around memory safety and garbage collection). From a language design perspective, it is very familiar to working in C. It is a great language for building web applications, but it’s also great for building command-line applications. Go (commonly referred to as golang) is a statically typed, compiled programming language. In this blog post, I’m going to walkthrough the process of setting up Go on my machine, and then the experience of using Visual Studio Code and Windows Subsystem for Linux (WSL) with Ubuntu. It’s fair to say that my development environment was ‘functional’, but I wanted to revisit it to make sure that I could get the best out of it. I’ve wanted to learn Go for a while, so I thought this could be a great opportunity to get hands on and try it out. ![]() Over the past few weeks, I have been working on a new set of pet projects. Time’s pushing on… Let’s git out of here.Setting up the Go Visual Studio Code Extension.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |