Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for possiblyConflictingPatterns (0.19 sec)

  1. src/net/http/routing_index.go

    				key.s = seg.s
    			}
    			idx.segments[key] = append(idx.segments[key], pat)
    		}
    	}
    }
    
    // possiblyConflictingPatterns calls f on all patterns that might conflict with
    // pat. If f returns a non-nil error, possiblyConflictingPatterns returns immediately
    // with that error.
    //
    // To be correct, possiblyConflictingPatterns must include all patterns that
    // might conflict. But it may also include patterns that cannot conflict.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 19 18:35:22 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. src/net/http/routing_index_test.go

    		if pat.conflictsWith(p) {
    			s = append(s, p.String())
    		}
    	}
    	slices.Sort(s)
    	return s
    }
    
    func indexConflicts(pat *pattern, idx *routingIndex) []string {
    	var s []string
    	idx.possiblyConflictingPatterns(pat, func(p *pattern) error {
    		if pat.conflictsWith(p) {
    			s = append(s, p.String())
    		}
    		return nil
    	})
    	slices.Sort(s)
    	return slices.Compact(s)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top