parent
62b8613877
commit
0c61aa0694
2 changed files with 21 additions and 0 deletions
@ -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…
Reference in new issue