Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isLitOrSingle (0.23 sec)

  1. src/net/http/pattern.go

    	switch r {
    	case moreSpecific:
    		return moreGeneral
    	case moreGeneral:
    		return moreSpecific
    	default:
    		return r
    	}
    }
    
    // isLitOrSingle reports whether the segment is a non-dollar literal or a single wildcard.
    func isLitOrSingle(seg segment) bool {
    	if seg.wild {
    		return !seg.multi
    	}
    	return seg.s != "/"
    }
    
    // describeConflict returns an explanation of why two patterns conflict.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 16:36:30 UTC 2024
    - 15.3K bytes
    - Viewed (0)
Back to top