util

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2021 License: MIT Imports: 14 Imported by: 1

Documentation

Index

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

func DownloadDoc(client *http.Client, docID string) (*docs.Document, error)

DownloadDoc just downloads the JSON representation of the document.

func MakeTarFromGDoc

func MakeTarFromGDoc(client *http.Client, url string, format string) (*os.File, error)

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

func ParseDocsURL(s string) (string, error)

ParseDocsURL parses a google docs url and tries to suss out a docid

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL