Skip to content
masterclass Buddy

Go · Function

make

make creates and initializes a slice, map, or channel. It returns that value, not a pointer.

Last updated

Syntax

func make(t Type, size ...IntegerType) Type

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • new
  • append
  • len
  • cap
  • close

Source: builtin package - builtin - Go Packages. Checked 2026-11-03.