Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
6
Task/Variadic-function/Go/variadic-function-1.go
Normal file
6
Task/Variadic-function/Go/variadic-function-1.go
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
func printAll(things ... string) {
|
||||
// it's as if you declared "things" as a []string, containing all the arguments
|
||||
for _, x := range things {
|
||||
fmt.Println(x)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue