func Errorf(code string, f string, a ...interface{}) *RemoteError {
	var msg string
	if f == "" && len(a) == 0 {
		msg = code
	} else {
		msg = fmt.Sprintf(f, a...)
	}
	return &RemoteError{
		Code:    code,
		Message: msg,
	}
}
// Errorf returns a new RemoteError instance that uses the
// given code and formats the message with fmt.Sprintf(f, a...).
// If f is empty and there are no other arguments, code will also
// be used for the message.
Errorf returns a new RemoteError instance that uses the
given code and formats the message with fmt.Sprintf(f, a...).
If f is empty and there are no other arguments, code will also
be used for the message.
// Errorf returns a new RemoteError instance that uses the // given code and formats the message with fmt . Sprintf ( f a ... ) . // If f is empty and there are no other arguments code will also // be used for the message .
func Errorf(code string, f string, a ...interface{}) *RemoteError {
	var msg string
	if f == "" && len(a) == 0 {
		msg = code
	} else {
		msg = fmt.Sprintf(f, a...)
	}
	return &RemoteError{
		Code:    code,
		Message: msg,
	}
}
func Errorf ( code string , f string , a ... interface { } ) * RemoteError { var msg string if f == " " && len ( a ) == 0 { msg = code } else { msg = fmt . Sprintf ( f , a ... ) } return & RemoteError { Code : code , Message : msg , } }
Errorf returns a new RemoteError instance that uses the
given code and formats the message with fmt.Sprintf(f, a...).
Errorf returns a new RemoteError instance that uses the given code and formats the message with fmt . Sprintf ( f a ... ) .