We already listed some of the built-in functions that are used to initialize some variables, that is, make and new. Now, let's go over each function and check out what they do:
- func append(slice []Type, elems ...Type) []Type: This function appends elements to the end of a slice. If the underlying array is full, it reallocates the content to a bigger slice before appending.
- func cap(v Type) int: Returns the number elements of an array, or of the underlying array if the argument is a slice.
- func close(c chan<- Type): Closes a channel.
- func complex(r, i FloatType) ComplexType: Given two floating points, this returns a complex number.
- func copy(dst, src []Type) int: Copies elements from a slice to another.
- func delete(m map[Type]Type1, key Type): Removes an entry from a map.
- func imag(c ComplexType) FloatType: Returns the imaginary part of...