Running Go Code

Let’s learn how to execute the Go code.

We now need to know how to execute hw.go or any other Go application. There are two ways to execute Go code:

  • As a compiled language using go build.

  • As a scripting language using go run.

So, let’s find out more about these two ways of running Go code.

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy