Initial commit: Go project with greet function and CLI
This commit is contained in:
17
cmd/greet/main.go
Normal file
17
cmd/greet/main.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"DanceLessonsCoach/pkg/greet"
|
||||
)
|
||||
|
||||
func main() {
|
||||
name := ""
|
||||
if len(os.Args) > 1 {
|
||||
name = os.Args[1]
|
||||
}
|
||||
|
||||
fmt.Println(greet.Greet(name))
|
||||
}
|
||||
Reference in New Issue
Block a user