「Go/変数」の版間の差分

削除された内容 追加された内容
Ef3 (トーク | 投稿記録)
M →‎ゼロ値: 推敲
タグ: 2017年版ソースエディター
Ef3 (トーク | 投稿記録)
→‎予め宣言された識別子: Go1.18で予め宣言された識別子に型 any が追加されました。これはinterface{}のaliasです。
タグ: 2017年版ソースエディター
233 行
| title = The Go Programming Language Specification
| chapter = Predeclared identifiers ¶
| date = JulMarch 2610, 20212022
| publisher = The Go website
}}
239 行
;予め宣言された識別子:<syntaxhighlight lang="text">
Types:
any bool byte comparable
complex64 complex128 error float32 float64
int int8 int16 int32 int64 rune string
uint uint8 uint16 uint32 uint64 uintptr
250 ⟶ 251行目:
 
Functions:
append cap close complex copy delete imag len
make new panic print println real recover
</syntaxhighlight>
:Go1.18で予め宣言された識別子に型 any が追加されました。これはinterface{}のaliasです。
{{See also|[[../キーワードと宣言済み識別子]]}}