One. Program Entities and Keywords
Any go language source files are made up of several program entities. in the Go language, variables, constants, functions, structs, and interfaces are collectively referred to as "program entities", and their names are collectively referred to as "identifiers".
Identifiers can be alphabetic characters, numbers, and underscores "_" that can be represented by any Unicode encoding. However, the initial letter cannot be a number or an underscore .
Note :
In the go language, our access control to program entities can only be implemented by their name .
Program entities with uppercase initials can be accessed by code in any code package.
Program entities whose initials are lowercase can only be accessed by code in the same code package.
The Go language also specifies a number of specific character sequences. They are called "keywords". Programmers cannot use keywords as identifiers.
The keywords for the Go language are shown in the following table:
Two. Variables and constants
Three. Name and width of integer type
Four. notation for integer type values
Five. Floating-point type
Six. Plural type
Seven. Byte and Rune
Eight. String type
Mooc
Go Language Primer-Basic data types