Skip to content

Instantly share code, notes, and snippets.

@sahajre
Created August 1, 2019 07:56
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