mage: github.com/magefile/mage/target Index | Files

package target

import "github.com/magefile/mage/target"

Index

Package Files

target.go

func Dir Uses

func Dir(dst string, sources ...string) (bool, error)

Dir reports whether any of the sources have been modified more recently than the destination. If a source or destination is a directory, modtimes of files under those directories are compared instead. If the destination file doesn't exist, it always returns true and nil. It's an error if any of the sources don't exist.

func Path Uses

func Path(dst string, sources ...string) (bool, error)

Path reports if any of the sources have been modified more recently than the destination. Path does not descend into directories, it literally just checks the modtime of each thing you pass to it. If the destination file doesn't exist, it always returns true and nil. It's an error if any of the sources don't exist.

Package target imports 3 packages (graph) and is imported by 1 packages. Updated 2018-11-12. Refresh now. Tools for package owners.