2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

「A Tour of Go」でGo言語を学ぶ

Posted at

初投稿です。
A Tour of Go」というサイトでGo言語のお勉強。ブラウザがあればお試しができるなんて便利ですよね。
本家は英語だけど日本語訳版を出してくださってる人がいるので、そこでやっていきます。
(ちなみにこのサイト、スマートフォンでもいい感じに見れるから、ちょっとした時間に見るのもいいかも。)

とりあえずHelloWorldから...

HelloWorld.go
package main

import "fmt"

func main() {
	fmt.Println("The grass is always greener on the other side of the fence.\n")
	fmt.Println("「隣の芝は青い」")
}

結果


The grass is always greener on the other side of the fence.

「隣の芝は青い」

感想


やっぱり最初驚くのは「;」の記号が文末にいらないことかな。これでセミコロンの付け忘れのエラーがなくなるね!!
ほかはパッと見変わらない印象。もう少し進めたらまた色々と違いが見れるのかな?

2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?