{"modulePath":"github.com/Go-Task/task","version":"v2.2.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package status\n\n## Types\n\n```go\ntype Checker interface {\n\tIsUpToDate() (bool, error)\n\tOnError() error\n}\n```\nChecker is an interface that checks if the status is up-to-date\n\n```go\ntype Checksum struct {\n\tDir     string\n\tTask    string\n\tSources []string\n}\n```\nChecksum validades if a task is up to date by calculating its source files checksum\n\n```go\nfunc (c *Checksum) IsUpToDate() (bool, error)\n```\nIsUpToDate implements the Checker interface\n\n```go\nfunc (c *Checksum) OnError() error\n```\nOnError implements the Checker interface\n\n```go\ntype None struct{}\n```\nNone is a no-op Checker\n\n```go\nfunc (None) IsUpToDate() (bool, error)\n```\nIsUpToDate implements the Checker interface\n\n```go\nfunc (None) OnError() error\n```\nOnError implements the Checker interface\n\n```go\ntype Timestamp struct {\n\tDir       string\n\tSources   []string\n\tGenerates []string\n}\n```\nTimestamp checks if any source change compared with the generated files, using file modifications timestamps.\n\n```go\nfunc (t *Timestamp) IsUpToDate() (bool, error)\n```\nIsUpToDate implements the Checker interface\n\n```go\nfunc (*Timestamp) OnError() error\n```\nOnError implements the Checker interface\n\n","path":"github.com/Go-Task/task/internal/status","name":"status","synopsis":"","isRedistributable":true}
