Built-in Functions
This lesson describes some built-in functions of Go and explains their tasks.
Introduction
The predefined functions, which can be used without having to import a package to get access to them, are called built-in functions. They sometimes apply to different types, e.g. len
, cap
, and append
, or they have to operate near system level like panic
. That’s why they need support from the compiler.
Explanation
Note: We’ll only list the name of the functions and their functionalities in this lesson. Some of the functions are covered before in detail and used multiple times, so we won’t run them from scratch. Functions that were not discussed previously, their running examples will be provided later in the course in detail, section by section. So don’t ...