func (r *RequestReader) SkipCmd() error {
	c, err := r.r.PeekByte()
	if err != nil {
		return err
	}

	if c != '*' {
		_, err = r.r.ReadLine()
		return err
	}

	n, err := r.r.ReadArrayLen()
	if err != nil {
		return err
	}
	if n < 1 {
		return r.SkipCmd()
	}

	for i := 0; i < n; i++ {
		if err := r.r.SkipBulk(); err != nil {
			return err
		}
	}
	return nil
}
// SkipCmd skips the next command.
SkipCmd skips the next command.
// SkipCmd skips the next command .
func (r *RequestReader) SkipCmd() error {
	c, err := r.r.PeekByte()
	if err != nil {
		return err
	}
	if c != '*' {
		_, err = r.r.ReadLine()
		return err
	}
	n, err := r.r.ReadArrayLen()
	if err != nil {
		return err
	}
	if n < 1 {
		return r.SkipCmd()
	}
	for i := 0; i < n; i++ {
		if err := r.r.SkipBulk(); err != nil {
			return err
		}
	}
	return nil
}
func ( r * RequestReader ) SkipCmd ( ) error { c , err := r . r . PeekByte ( ) if err != nil { return err } if c != '*' { _ , err = r . r . ReadLine ( ) return err } n , err := r . r . ReadArrayLen ( ) if err != nil { return err } if n < 1 { return r . SkipCmd ( ) } for i := 0 ; i < n ; i ++ { if err := r . r . SkipBulk ( ) ; err != nil { return err } } return nil }
SkipCmd skips the next command.
SkipCmd skips the next command .