utils

package
v0.0.0-...-ed8aa2e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(srcPath string, destPath string)

Copy a file, destination will be overwritten

func DownloadContent

func DownloadContent(url string) string

Copy the remote content into a temporary file

func HashLinesCRC32

func HashLinesCRC32(lines []string) (int, []byte)

Returns a CRC32 digest of the lines. Strips the new line character if present.

func HashLinesMD5

func HashLinesMD5(lines []string) (int, []byte)

Returns a MD5 digest of the lines. Strips the new line character if present.

func ReadEntireFile

func ReadEntireFile(path string) []string

Reads all the lines from a file.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL