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

削除された内容 追加された内容
Ef3 (トーク | 投稿記録)
s/予約語/キーワード/、{{Cite book}}
タグ: 2017年版ソースエディター
Ef3 (トーク | 投稿記録)
タグ: 2017年版ソースエディター
210 行
 
PL/Iのようですね。
 
==== 予め宣言された識別子 ====
ユニバースブロック(''universe block''<ref>ユニバースブロックは、すべてのGoソーステキストを包含しています。</ref>)では、以下の識別子が暗黙的に宣言されています<ref name="Predeclared_identifiers">{{cite book
| url = https://golang.org/ref/spec#Predeclared_identifiers
| title = The Go Programming Language Specification
| chapter = Predeclared identifiers ¶
| date = Jul 26, 2021
| publisher = The Go website
}}
</ref>。
;予め宣言された識別子:<source lang="text">
Types:
bool byte complex64 complex128 error float32 float64
int int8 int16 int32 int64 rune string
uint uint8 uint16 uint32 uint64 uintptr
 
Constants:
true false iota
 
Zero value:
nil
 
Functions:
append cap close complex copy delete imag len
make new panic print println real recover
</source>
 
== 型変換 ==