Examples using... os.RemoveAll()
Recent
This example demonstrates how to use one group of driver
templates with distinct sets of helper templates.
This example demonstrates one way to share some templates
and use them in different contexts. In this variant we add multiple driver
templates by hand to an existing bundle of templates.
Here we demonstrate loading a set of templates from a directory.
Walk walks the file tree rooted at root, calling walkFn for each file or
directory in the tree, including root. All errors that arise visiting files
and directories are filtered by walkFn. The files are walked in lexical
order, which makes the output deterministic but means that for very
large direc...
TempDir creates a new temporary directory in the directory dir
with a name beginning with prefix and returns the path of the
new directory. If dir is the empty string, TempDir uses the
default directory for temporary files (see os.TempDir).
Multiple programs calling TempDir simultaneously
will not c...
This example demonstrates how to use one group of driver
templates with distinct sets of helper templates.
Here we demonstrate loading a set of templates from files in different directories
This example demonstrates one way to share some templates
and use them in different contexts. In this variant we add multiple driver
templates by hand to an existing bundle of templates.
Here we demonstrate loading a set of templates from a directory.
Go has several useful functions for working with directories in the file system.