Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for PrefixMatch (0.2 sec)

  1. cmd/main.go

    		commandsTree.Insert(command.Name)
    	}
    
    	findClosestCommands := func(command string) []string {
    		var closestCommands []string
    		closestCommands = append(closestCommands, commandsTree.PrefixMatch(command)...)
    
    		sort.Strings(closestCommands)
    		// Suggest other close commands - allow missed, wrongly added and
    		// even transposed characters
    		for _, value := range commandsTree.Walk(commandsTree.Root()) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  2. cmd/object-api-utils.go

    	}
    	return false
    }
    
    // Returns the part file name which matches the partNumber and etag.
    func getPartFile(entriesTrie *trie.Trie, partNumber int, etag string) (partFile string) {
    	for _, match := range entriesTrie.PrefixMatch(fmt.Sprintf("%.5d.%s.", partNumber, etag)) {
    		partFile = match
    		break
    	}
    	return partFile
    }
    
    func partNumberToRangeSpec(oi ObjectInfo, partNumber int) *HTTPRangeSpec {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
Back to top