Learning GO
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package hello
|
||||
|
||||
import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
func Say(names []string) string {
|
||||
|
||||
if len(names) == 0 {
|
||||
names = []string{"world"}
|
||||
}
|
||||
return "Hello, " + strings.Join(names, ", ") + "!"
|
||||
}
|
||||
Reference in New Issue
Block a user