Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func File ¶
File gets the provided resource to a temporary file on the local machine and returns the path.
func ReadFile ¶
ReadFile returns the content of the provided resource as an array of bytes or returns an error.
func WithFile ¶
func WithFile(resource string, callback func(path string) (interface{}, error)) (interface{}, error)
WithFile gets the provided resource to a temporary file on the local machine, invokes the callback with the path and returns the result. Note that the temporary file is deleted when the callback returns.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.