feature/pwd
dtluna 6 years ago
parent 62b8613877
commit 0c61aa0694
  1. 1
      README.md
  2. 20
      yes/yes.go

@ -10,3 +10,4 @@ Implemeted utilities:
* `true` * `true`
* `false` * `false`
* `yes`

@ -0,0 +1,20 @@
package main
import (
"fmt"
"os"
)
func yes(word string) {
for {
fmt.Println(word)
}
}
func main() {
if len(os.Args) == 1 {
yes("y")
} else {
yes(os.Args[1])
}
}
Loading…
Cancel
Save