package
1.20240719.1
Repository: https://github.com/blend/go-sdk.git
Documentation: pkg.go.dev

# Functions

DirExists determines if a path exists and is a directory (not a file).
ETag creates an etag for a given blob.
FileExists determines if a path exists and is a file (not a directory).
FormatFileSize returns a string representation of a file size in bytes.
NewTemp creates a new temp file with given contents.
NewWatcher returns a new watcher.
ParseFileSize parses a file size.
ReadChunks reads a file in `chunkSize` pieces, dispatched to the handler.
ReadLines reads a file and calls the handler for each line.
RemoveMany removes an array of files.
Watch watches a file for changes and calls the action if there are changes.

# Constants

Watch constants.
Watch constants.
Gigabyte represents the bytes in a gigabyte.
Kilobyte represents the bytes in a kilobyte.
Megabyte represents the bytes in a megabyte.
Terabyte represents the bytes in a terabyte.

# Structs

Temp is a file that deletes itself when closed.
Watcher watches a file for changes and calls the action.

# Type aliases

WatchAction is an action for the file watcher.
WatcherOption is an option for a watcher.