code: func HashFile(h crypto.Hash, path string) (isolateservice.HandlersEndpointsV1Digest, error) {
  	f, err := os.Open(path)
  	if err != nil {
  		return isolateservice.HandlersEndpointsV1Digest{}, err
  	}
  	defer f.Close()
  	a := h.New()
  	size, err := io.Copy(a, f)
  	if err != nil {
  		return isolateservice.HandlersEndpointsV1Digest{}, err
  	}
  	return isolateservice.HandlersEndpointsV1Digest{Digest: string(Sum(a)), IsIsolated: false, Size: size}, nil
  }
docs: // HashFile hashes a file and returns a HandlersEndpointsV1Digest out of it.