code: func (c *Client) GetFeedPath(stream, direction string, version int, pageSize int) (string, error) {
  	ps := pageSize
  
  	dir := ""
  	switch direction {
  	case "forward", "backward":
  		dir = direction
  	default:
  		return "", fmt.Errorf("Invalid Direction %s. Allowed values are \"forward\" or \"backward\" \n", direction)
  	}
  
  	v := "head"
  	if version >= 0 {
  		v = strconv.Itoa(version)
  	}
  
  	if v == "head" && dir == "forward" {
  		return "", fmt.Errorf("Invalid Direction (%s) and version (head) combination.\n", direction)
  	}
  
  	return fmt.Sprintf("/streams/%s/%s/%s/%d", stream, v, dir, ps), nil
  }
docs: // GetFeedPath returns the path for a feedpage
  //
  // Valid directions are "forward" and "backward".
  //
  // To get the path to the head of the stream, pass a negative integer in the version
  // argument and "backward" as the direction.