/* Yes program implementation. */ package yes import( "os" "fmt" "flag" "strings" "github.com/jienfak/goblin/input" ) var( nArg int ) func yes(s string){ if nArg<0{ for{ fmt.Print(s) } } else { for i:=0 ; i0 { s = strings.Join(args, " ") } else { s = "y" } } if !nFlag { s += "\n" } yes(s) return status }