Back to Developer Roadmap

Variadic Functions

src/data/roadmaps/golang/content/variadic-functions@MUJfa0jIL_S_b2ndNpVVw.md

4.0610 B
Original Source

Variadic Functions

Functions accepting variable number of arguments of same type. Syntax: func name(args ...Type). Arguments treated as slice inside function. Call with multiple args or slice with ... operator. Common in functions like fmt.Printf() and append().

Visit the following resources to learn more: