Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ParseTilePath (0.11 sec)

  1. src/cmd/vendor/golang.org/x/mod/sumdb/tlog/tile.go

    	}
    	var L string
    	if t.L == -1 {
    		L = "data"
    	} else {
    		L = fmt.Sprintf("%d", t.L)
    	}
    	return fmt.Sprintf("tile/%d/%s/%s%s", t.H, L, nStr, pStr)
    }
    
    // ParseTilePath parses a tile coordinate path.
    func ParseTilePath(path string) (Tile, error) {
    	f := strings.Split(path, "/")
    	if len(f) < 4 || f[0] != "tile" {
    		return Tile{}, &badPathError{path}
    	}
    	h, err1 := strconv.Atoi(f[1])
    	isData := false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13K bytes
    - Viewed (0)
Back to top