Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Download ¶
func Download(id, file string, dl FileDownload) error
func ExpandUUID ¶
ExpandUUID takes a uuid in the form without dashes, such as `aceb326fda1545bcbf2f11940c21780c` and returns it with dashes, eg `aceb326f-da15-45bc-bf2f-11940c21780c`.
If the uuid is already expanded, it will be returned as is. If the UUID is invalid, panic.
func ReadOrDownload ¶
func ReadOrDownload(id, file string, dl FileDownload, ptr interface{}) error
Types ¶
type FileDownload ¶
Click to show internal directories.
Click to hide internal directories.