Documentation
¶
Index ¶
- func CheckGitSha(filename string, size int64, expected string) error
- func CheckSha256(filename string, expected string) error
- func GitShaFileContents(name string, size int64) ([]byte, error)
- func Keys[A comparable, B interface{}](m map[A]B) []A
- func ListFilesWithSuffix(dir, suf string) ([]string, error)
- func NewTmpFileWithRenameOnClose(dir, pattern, rename string) (io.WriteCloser, error)
- func OrderedKeys[A constraints.Ordered, B interface{}](m map[A]B) []A
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckGitSha ¶
CheckGitSha checks the "git hash" of the file, returns nil when the hash has the expected value
func CheckSha256 ¶
CheckSha256 checks the "git hash" of the file, returns nil when the hash has the expected value
func GitShaFileContents ¶
GitShaFileContents returns the "git hash" of a file
func ListFilesWithSuffix ¶
func NewTmpFileWithRenameOnClose ¶
func NewTmpFileWithRenameOnClose(dir, pattern, rename string) (io.WriteCloser, error)
func OrderedKeys ¶
func OrderedKeys[A constraints.Ordered, B interface{}](m map[A]B) []A
OrderedKeys returns a sorted slice of map keys
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.