17 lines
232 B
Go
17 lines
232 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func join(srt ...string) string {
|
|
res := ""
|
|
for _,s := range srt {
|
|
fmt.Println(s)
|
|
res = res + s + " "
|
|
}
|
|
return res
|
|
}
|
|
|
|
func main() {
|
|
// s := []string{"lol","kik"}
|
|
fmt.Println(join("lol","kek"))
|
|
} |