break default func interface select
case defer go map struct
chan else goto package switch
const fallthrough if range type
continue for import return var
const
, func
, import
, package
, type
and var
are used to declare all kinds of code elements in Go programs.
chan
, interface
, map
and struct
are used as parts in some composite type denotations.
break
, case
, continue
, default
, else
, fallthrough
, for
, goto
, if
, range
, return
, select
and switch
are used to control flow of code.
defer
and go
are also control flow keywords, but in other specific manners. They modify function calls, which we'll talk about in this article.
_
(underscore), and start with either an Unicode letter or _
. Here,
_
is a special identifier, it is called blank identifier.
Player_9
DoSomething
VERSION
Ĝo
Π
_
_status
memStat
book
π
一个类型
변수
エラー
// Starting with a Unicode digit.
123
3apples
// Containing Unicode characters not
// satisfying the requirements.
a.b
*ptr
$name
a@b.c
// These are keywords.
type
range
The Go 101 project is hosted on Github. Welcome to improve Go 101 articles by submitting corrections for all kinds of mistakes, such as typos, grammar errors, wording inaccuracies, description flaws, code bugs and broken links.
If you would like to learn some Go details and facts every serveral days, please follow Go 101's official Twitter account @zigo_101.
reflect
standard package.sync
standard package.sync/atomic
standard package.