package
0.0.0-20250210171435-dda779884a9f
Repository: https://github.com/hashicorp/go-cty-funcs.git
Documentation: pkg.go.dev

# Functions

Basename takes a string containing a filesystem path and removes all except the last portion from it.
Dirname takes a string containing a filesystem path and removes the last portion from it.
File reads the contents of the file at the given path.
FileExists determines whether a file exists at the given path.
FileSet enumerates a set of files given a glob pattern The underlying function implementation works relative to a particular base directory, so this wrapper takes a base directory string and uses it to construct the underlying function before calling it.
MakeFileExistsFunc is a function that takes a path and determines whether a file exists at that path.
MakeFileFunc constructs a function that takes a file path and returns the contents of that file, either directly as a string (where valid UTF-8 is required) or as a string containing base64 bytes.
MakeFileSetFunc is a function that takes a glob pattern and enumerates a file set from that pattern.
Pathexpand takes a string that might begin with a `~` segment, and if so it replaces that segment with the current user's home directory path.

# Variables

AbsPathFunc is a function that converts a filesystem path to an absolute path.
BasenameFunc is a function that takes a string containing a filesystem path and removes all except the last portion from it.
DirnameFunc is a function that takes a string containing a filesystem path and removes the last portion from it.
PathExpandFunc is a function that expands a leading ~ character to the current user's home directory.