I swore that I would definitely change jobs, so I tried "hello word" with golang

I'm a man in his 20s working at an SES or contract development company who wants to change jobs to an in-house developed web company. I was dissatisfied with the environment and salary where my current skills are difficult to develop, so I vowed to take action without complaining, so I decided to study Go language. It also serves as a practice for writing articles for Qiita.

Let's do hello word now!

Prepare for the time being * It is assumed that the editor and homebrew are already installed. Send the following command to the terminal.
#homebrew update
$ brew update

#install go
$ brew install go

Now go is ready.

Let's write the code

Below is the code

hello.go


package main

import (
	"fmt"
)

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

Execute with the following command!

$ go run hello.go
#Below, the execution result
hello world

So far today.

Recommended Posts

I swore that I would definitely change jobs, so I tried "hello word" with golang
Work memo that I tried i18n with Flask app