LoginSignup
3
0

More than 5 years have passed since last update.

Go言語をはじめてさわって見る

Posted at

はじめに

Go言語が社内で話題になっていたので触って見る

インストール

homebrew を使用してインストール

brew install go

動作確認

環境変数を設定して動作確認

go version

Hello worldをやってみる

hello.go
package main

import "fmt"

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

実行してみる

$ go build hello.go
$ ./hello

A Tour of Goを読んで見る

一番思ったのは、変数宣言や関数の使用の仕方が変わっているのでいつもの感覚で書いているとエラーになりそう

まとめ

とりあえず話題に上がっていたのでさわるだけでさわって見た

全然Go言語のこと触れてないのでわからないことだらけなので

https://qiita.com/suin/items/22662f43b6a6e8728798 や
A Tour of Go
をもっと詳しく読んでみって何か使えるものを作ってみる

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0