0
0

More than 1 year has passed since last update.

Goland学習1日目

Posted at

Go言語とは

Googleが開発した言語
基本的にimportでパッケージを読み込み実行する

学習内容

fmt

Cに似たprintf と scanf に似たフォーマット I/O 関数を実装する。

Println

fmt.Println()は引数の間にスペースを入れ、最後に改行文字 “\n” を出力します。 https://www.flyenginer.com/low/go/go%E8%A8%80%E8%AA%9E%E3%81%AEprint%E3%83%BBprintln%E3%83%BBprintf%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6.html

変数

宣言する方法

var 変数名 データ型
で変数のデータの型を漸減できる。

 var name string
 name = "Jon"

型推論

:= を使用することでデータ型の宣言せずに型推論でデータを自動で認識できる。

   name := "Jon"
0
0
1

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