MCPcopy Create free account
hub / github.com/exercism/cli / url

Method url

cmd/download.go:319–327  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

317}
318
319func (sf solutionFile) url() (string, error) {
320 url, err := netURL.ParseRequestURI(fmt.Sprintf("%s%s", sf.baseURL, sf.path))
321
322 if err != nil {
323 return "", err
324 }
325
326 return url.String(), nil
327}
328
329func (sf solutionFile) relativePath() string {
330 file := sf.path

Callers 1

TestSolutionFileFunction · 0.95

Calls 1

StringMethod · 0.45

Tested by 1

TestSolutionFileFunction · 0.76