Documentation ¶
Overview ¶
Package getter.
Code copied from: https://github.com/facebookarchive/symwalk/blob/42004b9f322246749dd73ad71008b1f3160c0052/walk.go#L12-L45 BSD License
For symwalk software ¶
Copyright (c) 2015, Facebook, Inc. All rights reserved.
Index ¶
- func Download(ctx context.Context, src, dst string) error
- func EnsureDownloaded(ctx context.Context, templateSources []Source, dir string) error
- func Load[T any](ctx context.Context, tmpDir string, templateSources []Source) ([]T, error)
- func Walk(path string, walkFn fs.WalkDirFunc) error
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Download ¶
Download downloads data from a given source to local file system under a given destination path.
func EnsureDownloaded ¶
EnsureDownloaded downloads given sources only if not yet downloaded. It's a weak comparison based on the source path.
Types ¶
Click to show internal directories.
Click to hide internal directories.