Documentation ¶
Overview ¶
Package custom_path sets the working directory to the directory containing the program and returns an optional custom path defined on the command line.
code derived from:
https://www.kaihag.com/external-assets-working-directories-and-go/
When using a Docker container for example you could point the asset path to a persistent directory so that your files survive a restart.
Usage ¶
Specify a custom path to the asset files. This needs to be an absolute path.
Example: -custom-path C:/testdata
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.