Filenames, Keywords and Identifiers

This lesson describes what a basic Go program usually comprises of.

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. Below is the set of 25 keywords, or reserved words, used in Go-code:

Get hands-on with 1200+ tech skills courses.