Inspiration

I've been wanting to starting learning GO a long time ago and here is my fresh start.

About GO

Go is a statically typed, compiled programming language designed at Google by Robert Griesemer, Rob Pike, and Ken Thompson. Go is syntactically similar to C, but with memory safety, garbage collection, structural typing, and CSP-style concurrency.

TLDR

Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.

How I built it

This is the Hello World code:

package main

import "fmt"

func main() {
    fmt.Println("hello world")
}

To run the program, put the code in hello-world.go and use go run.

$ go run hello-world.go
hello world

Sometimes we’ll want to build our programs into binaries. We can do this using go build.

$ go build hello-world.go
$ ls
hello-world    hello-world.go

We can then execute the built binary directly.

$ ./hello-world
hello world

What's next for Hello World in a new Language

Now that I can run and build basic Go programs, I'll definitely learn more about the language.

Built With

Share this project:

Updates