initial commit
This commit is contained in:
21
hello/hello.go
Normal file
21
hello/hello.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
|
||||
"example.com/greetings"
|
||||
)
|
||||
|
||||
func main() {
|
||||
log.SetPrefix("greetings: ")
|
||||
log.SetFlags(0)
|
||||
|
||||
names := []string{"Gladys", "Samantha", "Darrin"}
|
||||
|
||||
messages, err := greetings.Hellos(names)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
fmt.Println(messages)
|
||||
}
|
||||
Reference in New Issue
Block a user