Bacancy Technology
Bacancy Technology represents the connected world, offering innovative and customer-centric information technology experiences, enabling Enterprises, Associates and the Society to Rise™.
12+
Countries where we have happy customers
1050+
Agile enabled employees
06
World wide offices
12+
Years of Experience
05
Agile Coaches
14
Certified Scrum Masters
1000+
Clients projects
1458
Happy customers
Artificial Intelligence
Machine Learning
Salesforce
Microsoft
SAP
August 18, 2023
There is no optional param support in golang. But we can use variadic arguments. The function actually receives a slice of whatever type you specify.
func foo(params ...int) { fmt.Println(len(params)) } func main() { foo() foo(1) foo(1,2,3) foo([]int{1, 2, 3, 4}...) }