diff --git a/yes/yes.go b/yes/yes.go index caa9af1..515ed58 100644 --- a/yes/yes.go +++ b/yes/yes.go @@ -8,10 +8,19 @@ import( "strings" "github.com/jienfak/goblin/input" ) +var( + nArg int +) func yes(s string){ - for{ - fmt.Print(s) + if nArg<0{ + for{ + fmt.Print(s) + } + } else { + for i:=0 ; i