Variadic Function

Run Settings
LanguageGo
Language Version
Run Command
package main import ( "fmt" ) func coba(number ...int)[]int{ return number } func main() { fmt.Println("Coba",coba(1,2,3)) slice := []int{4,5,6} fmt.Println(coba(slice...)) }
Editor Settings
Theme
Key bindings
Full width
Lines