Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isEmptyPath (0.05 sec)

  1. cmd/endpoint.go

    }
    
    // NewEndpoint - returns new endpoint based on given arguments.
    func NewEndpoint(arg string) (ep Endpoint, e error) {
    	// isEmptyPath - check whether given path is not empty.
    	isEmptyPath := func(path string) bool {
    		return path == "" || path == SlashSeparator || path == `\`
    	}
    
    	if isEmptyPath(arg) {
    		return ep, fmt.Errorf("empty or root endpoint is not supported")
    	}
    
    	var isLocal bool
    	var host string
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 34.4K bytes
    - Viewed (0)
Back to top