In Go language, an identifier can be a variable name, function name, constant, statement labels, package name, or types.
Example:
package main
import "fmt"
func main() {
var name = "GeeksforGeeks"
}
There is total of three identifiers available in the above example:
- main: Name of the package
- main: Name of the function
- name: Name of the variable