Documentation ¶
Index ¶
- func DownloadAssets(client *http.Client, doc *docs.Document, assetsDir string, createJSON bool) (downloader.Manifest, error)
- func DownloadDoc(client *http.Client, docID string) (*docs.Document, error)
- func MakeTarFromGDoc(client *http.Client, url string, format string) (*os.File, error)
- func ParseDocsURL(s string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadAssets ¶
func DownloadAssets(client *http.Client, doc *docs.Document, assetsDir string, createJSON bool) (downloader.Manifest, error)
DownloadAssets fetches the assets and places them in a directory, with a mapping file that is used in generating the final document if not done at the same time as the fetch.
func DownloadDoc ¶
DownloadDoc just downloads the JSON representation of the document.
func MakeTarFromGDoc ¶
MakeTarFromGDoc returns an opened file seeked to position 0. This file will already contain a gzipped tarball that can be fed directly to a writer.
func ParseDocsURL ¶
ParseDocsURL parses a google docs url and tries to suss out a docid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.