Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for lcpSuffix (0.04 sec)

  1. cmd/common-main.go

    					"Invalid MINIO_DOMAIN value in environment variable")
    			}
    			globalDomainNames = append(globalDomainNames, domainName)
    		}
    		sort.Strings(globalDomainNames)
    		lcpSuf := lcpSuffix(globalDomainNames)
    		for _, domainName := range globalDomainNames {
    			if domainName == lcpSuf && len(globalDomainNames) > 1 {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  2. cmd/utils.go

    	for _, key := range keys {
    		accumulator = append(accumulator, key, "{"+key+":.*}")
    	}
    	return accumulator
    }
    
    // Suffix returns the longest common suffix of the provided strings
    func lcpSuffix(strs []string) string {
    	return lcp(strs, false)
    }
    
    func lcp(strs []string, pre bool) string {
    	// short-circuit empty list
    	if len(strs) == 0 {
    		return ""
    	}
    	xfix := strs[0]
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 33K bytes
    - Viewed (0)
Back to top