Documentation ¶
Overview ¶
Package file is meant to take care of all asset file opening so that file access is safe if trying to access a bundled file or a file from the disk
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Open ¶
func Open(path string) (io.ReadCloser, error)
Open will return the file if its bundled or on disk and return a File interface for the file and an error if it does not exist. The File interface allows for consitent access to disk files and zip files.
func Read ¶
Read will read a file at the path specified in total and return a byte array of the file contents
func ReadString ¶
ReadString acts like Read but instead return a string. This is useful in certain circumstances.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.