Go言語の主な型の一覧。
- int
- int8
- uint
- uint32
- float32
- float64
- complex64
- complete128
- byte
- string
型の特徴は以下のとおり。
- int型 != int32型
- byte型 == uint8型
- string型の変数 != byte配列
- complex64は複素数型で2つのfloat32型で構成
- complex128は複素数型で2つのfloat64型で構成
- string型の変数はC++の文字列定数(const string)と同義
More than 5 years have passed since last update.
Go言語の主な型の一覧。
型の特徴は以下のとおり。
Register as a new user and use Qiita more conveniently