Documentation
¶
Index ¶
- Variables
- func Cleanup(files []string) []string
- func CriarTabelas(db *sqlx.DB, tabelas []Tabela) (err error)
- func DownloadAndUnzip(url, zip string, filters []string) ([]string, error)
- func FileHash(filename string) (h string, err error)
- func HasHash(db *sqlx.DB, hash string) (bool, error)
- func Hash(data *[]byte) string
- func Hashes(db *sqlx.DB) ([]string, error)
- func SaveHash(db *sqlx.DB, hash string) error
- func Unzip(src, dest string, filters []string, verbose bool) (filenames []string, err error)
- type Tabela
- type WriteCounter
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrFileNotFound = errors.New("arquivo não encontrado")
)
Functions ¶
func CriarTabelas ¶
CriarTabelas cria as tabelas em tabelasInfra, além das tabelas passadas como parâmetro.
func Unzip ¶
UnzipVerbosity will decompress a zip archive, moving all files and folders within the zip file (parameter 1) to an output directory (parameter 2). Source: https://golangcode.com/unzip-files-in-go/
Types ¶
type WriteCounter ¶
type WriteCounter struct {
Total uint64
}
WriteCounter counts the number of bytes written the io.Writer. source: https://golangcode.com/download-a-file-with-progress/
Click to show internal directories.
Click to hide internal directories.