func (p *SyncPair) ToRight(u uri.Uri) (uri.Uri, error) { lTmp := p.Left.Uri() rTmp := p.Right.Uri() lTmplen := len(lTmp) rTmplen := len(rTmp) if lTmp[lTmplen-1] == '/' { lTmp = lTmp[0 : lTmplen-1] } if rTmp[rTmplen-1] == '/' { rTmp = rTmp[0 : rTmplen-1] } Uris := strings.Replace(u.Uri(), lTmp, rTmp, -1) return uri.Parse(Uris) }