Documentation
¶
Index ¶
- func DownloadUrl(id string) string
- func FileExists(path string) bool
- func FileSizeFormat(bytes int64) string
- func FormatBool(b bool) string
- func Homedir() string
- func ISODateToLocal(iso string) string
- func MeasureTransferRate() func(int64) string
- func Mkdir(path string) error
- func ParentList(parents []*drive.ParentReference) string
- func PreviewUrl(id string) string
- func Print(m map[string]string, keyOrder []string)
- func PrintColumns(items []map[string]string, keyOrder []string, columnSpacing int, noHeader bool)
- func Prompt(msg string) string
- func TruncateString(str string, maxRunes int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadUrl ¶
Note to self: file.WebContentLink = https://docs.google.com/uc?id=<id>&export=download
func FileSizeFormat ¶
func FormatBool ¶
func ISODateToLocal ¶
func MeasureTransferRate ¶
func ParentList ¶
func ParentList(parents []*drive.ParentReference) string
func PreviewUrl ¶
func PrintColumns ¶
Prints items in columns with header and correct padding
func TruncateString ¶
Truncates string to given max length, and inserts ellipsis into the middle of the string to signify that the string has been truncated
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.