Skip to content

Instantly share code, notes, and snippets.

@sahajre
Created August 1, 2019 07:56
Show Gist options
  • Save sahajre/b7884baffc72f66e29d0eef38d2e41a9 to your computer and use it in GitHub Desktop.
Save sahajre/b7884baffc72f66e29d0eef38d2e41a9 to your computer and use it in GitHub Desktop.
package main
import "fmt"
func main() {
greeting("Hello", ", ", "世", "界")
}
func greeting(h string, to ...string) {
fmt.Print(h)
for _, s := range to {
fmt.Print(s)
}
fmt.Println()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment