LoginSignup
2
2

More than 5 years have passed since last update.

Go言語の型

Last updated at Posted at 2015-07-11

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)と同義

参考
* Goプログラミング言語のチュートリアル Goの型について

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