Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for str (0.12 sec)

  1. cmd/object-api-utils.go

    // Comparison is case insensitive. Explicit short-circuit if
    // the list contains the wildcard "*".
    func hasStringSuffixInSlice(str string, list []string) bool {
    	str = strings.ToLower(str)
    	for _, v := range list {
    		if v == "*" {
    			return true
    		}
    
    		if strings.HasSuffix(str, strings.ToLower(v)) {
    			return true
    		}
    	}
    	return false
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
Back to top