utils

package
v0.35.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirContentIsOlderThan

func DirContentIsOlderThan(dir *paths.Path, target *paths.Path, extensions ...string) (bool, error)

DirContentIsOlderThan returns true if the content of the given directory is older than target file. If extensions are given, only the files with these extensions are tested.

func FindFilesInFolder

func FindFilesInFolder(dir *paths.Path, recurse bool, extensions ...string) (paths.PathList, error)

FindFilesInFolder fixdoc

func NormalizeUTF8

func NormalizeUTF8(buf []byte) []byte

NormalizeUTF8 byte slice TODO: use it more often troughout all the project (maybe on logger interface?)

func ObjFileIsUpToDate

func ObjFileIsUpToDate(sourceFile, objectFile, dependencyFile *paths.Path) (bool, error)

ObjFileIsUpToDate fixdoc

func PrintableCommand

func PrintableCommand(parts []string) string

PrintableCommand Convert a command and argument slice back to a printable string. This adds basic escaping which is sufficient for debug output, but probably not for shell interpretation. This essentially reverses ParseCommandLine.

Types

This section is empty.

Jump to

Keyboard shortcuts

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