code: func TarResource(sourceInfo CopyInfo) (content io.ReadCloser, err error) {
  	return TarResourceRebase(sourceInfo.Path, sourceInfo.RebaseName)
  }
docs: // TarResource archives the resource described by the given CopyInfo to a Tar
  // archive. A non-nil error is returned if sourcePath does not exist or is
  // asserted to be a directory but exists as another type of file.
  //
  // This function acts as a convenient wrapper around TarWithOptions, which
  // requires a directory as the source path. TarResource accepts either a
  // directory or a file path and correctly sets the Tar options.