The three dots (…) in Golang is termed as Ellipsis in Golang which is used in the variadic function. The function that called with the varying number of arguments is known as variadic function. Or in other words, a user is allowed to pass zero or more arguments in the variadic function. fmt.Printf is the example of the variadic function, it required one fixed argument at the starting after that it can accept any number of arguments.
The last parameter of the variadic function is always using the Ellipsis. It means it can accept any number of arguments.
Hello Rahul Hello Mohit Hello Rahul Hello Rohit Hello Johny
type of nums is int 89 found at index 0 in [89 90 95] type of nums is int 45 found at index 2 in [56 67 45 90 109] type of nums is int 78 not found in [38 56 98] type of nums is int 87 not found in 
- How to hide text-overflown as ellipsis using dynamic bootstrap cols ?
- Zero value in Golang
- Golang Maps
- Strings in Golang
- Structures in Golang
- Pointers in Golang
- Recover in Golang
- Panic in Golang
- Slices in Golang
- Methods With Same Name in Golang
- Interfaces in Golang
- Composition in Golang
- Using WaitGroup in Golang
- Reflection in Golang
- Methods in Golang
- How to copy a map to another map in Golang?
- What is Regex in Golang?
- Channel in Golang
- Rune in Golang
- Hello World in Golang
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.