// makeReq builds a request to ensure the presence of required arguments, stores the
// arguments in its string form.
makeReq builds a request to ensure the presence of required arguments, stores the
arguments in its string form.
// makeReq builds a request to ensure the presence of required arguments stores the // arguments in its string form .
func makeReq(required []string, args ...args.Argument) (*requests.Request, error) {
	req := requests.NewReq(required)
	for _, argument := range args {
		err := argument(req)
		if err != nil {
			return nil, fmt.Errorf("argument error: %s", err)
		}
	}
	err := req.AssertRequired()
	if err != nil {
		return nil, fmt.Errorf("required arguments not meeted:%s", err)
	}
	return req, nil
}
func makeReq ( required [ ] string , args ... args . Argument ) ( * requests . Request , error ) { req := requests . NewReq ( required ) for _ , argument := range args { err := argument ( req ) if err != nil { return nil , fmt . Errorf ( " " , err ) } } err := req . AssertRequired ( ) if err != nil { return nil , fmt . Errorf ( " " , err ) } return req , nil }
makeReq builds a request to ensure the presence of required arguments, stores the
arguments in its string form.
makeReq builds a request to ensure the presence of required arguments stores the arguments in its string form .