code: func (ns *Namespace) getResource(cache *filecache.Cache, unmarshal func(b []byte) (bool, error), req *http.Request) error {
  	switch req.URL.Scheme {
  	case "":
  		b, err := getLocal(req.URL.String(), ns.deps.Fs.Source, ns.deps.Cfg)
  		if err != nil {
  			return err
  		}
  		_, err = unmarshal(b)
  		return err
  	default:
  		return ns.getRemote(cache, unmarshal, req)
  	}
  }
docs: // getResource loads the content of a local or remote file and returns its content and the
  // cache ID used, if relevant.