Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Find ¶
Find locates the passed datafile shortname and returns an absolute or relative path to find the datafile at.
For example, for "Tibia.pic" it may return "mybinary.runfiles/go_tibia/datafiles/Tibia.pic".
TODO(ivucica): Support finding over HTTP.
func NoFindOpen ¶
func Open ¶
Open locates the passed file in the same locations that Find would look, and opens it. If Find returns an empty string, an error is returned.
TODO(ivucica): Support finding over HTTP.
func SetupFilePathFlag ¶
SetupFilePathFlag creates a new string flag with the passed name with a sane default for the path to the file, if found using the Find function. If not, the flag defaults to an empty string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.