Filenames, Keywords and Identifiers
Understand Go source file naming conventions, the role of reserved keywords, and how to create valid identifiers. Learn the use of blank and anonymous identifiers, and the basic structure of Go programs to write clear and correct code.
We'll cover the following...
We'll cover the following...
Filename
Go source code is stored in .go files. Their filenames consist of lowercase-letters, like educative.go. If the name consists of multiple parts, they are separated by underscores ‘_’, like educative_platform.go. Filenames cannot contain spaces or any other special characters. A source file contains code lines whose length has no intrinsic limits.
Keyword
A reserved word, with a special meaning in a programming language, is called a keyword ...