// BuildBasePath builds base path from root to argument node.
// If path param node is found, stop building and returns the path.
BuildBasePath builds base path from root to argument node.
If path param node is found, stop building and returns the path.
// BuildBasePath builds base path from root to argument node . // If path param node is found stop building and returns the path .
func BuildBasePath(node *Node) (p string) {
	n := node
	for n.Parent != nil {
		if n.Parent.IsPathParam{
			break
		}
		p = path.Clean("/" + n.Parent.Endpoint + p)
		n = n.Parent
	}
	return p
}
func BuildBasePath ( node * Node ) ( p string ) { n := node for n . Parent != nil { if n . Parent . IsPathParam { break } p = path . Clean ( " " + n . Parent . Endpoint + p ) n = n . Parent } return p }
BuildBasePath builds base path from root to argument node.
BuildBasePath builds base path from root to argument node .