Documentation
¶
Index ¶
- Constants
- Variables
- func Download(url, outPath string) error
- func DownloadAndListDiginfraCodeFiles() ([]string, error)
- func GenSourceFile(w io.Writer, info *GenTemplateInfo) error
- func ListDirFiles(dirPath string, recursive bool) ([]string, error)
- func Unzip(zipFile, outDir string) error
- func VarNameFromFilePath(path, prefix string) string
- type GenTemplateInfo
- type LargeFileVarInfo
- type StringFileVarInfo
Constants ¶
View Source
const ( // DiginfraCodeVersion is a git tag used to pull the code of // diginfra/diginfra and extract the test data files used in the // legacy Python regression tests DiginfraCodeVersion = "0.34.1" DiginfraCodeDir = "diginfra-" + DiginfraCodeVersion )
Variables ¶
View Source
var ( DownloadDir = "" DiginfraCodeURL = fmt.Sprintf("https://github.com/diginfra/diginfra/archive/refs/tags/%s.zip", DiginfraCodeVersion) )
Functions ¶
func GenSourceFile ¶
func GenSourceFile(w io.Writer, info *GenTemplateInfo) error
func VarNameFromFilePath ¶
Types ¶
type GenTemplateInfo ¶
type GenTemplateInfo struct { Timestamp time.Time PackageName string LargeFiles []*LargeFileVarInfo StringFiles []*StringFileVarInfo }
type LargeFileVarInfo ¶
type StringFileVarInfo ¶
Click to show internal directories.
Click to hide internal directories.