gdApiLib

package
v0.0.0-...-8d7b2d3 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Gapp = map[string]string{
	"gdoc":    "application/vnd.google-apps.document",
	"gsheet":  "application/vnd.google-apps.spreadsheet",
	"gdraw":   "application/vnd.google-apps.drawing",
	"gscript": "application/vnd.google-apps.script",
	"photo":   "application/vnd.google-apps.photo",
	"gslide":  "application/vnd.google-apps.presentation",
	"gmap":    "application/vnd.google-apps.map",
	"gform":   "application/vnd.google-apps.form",
	"folder":  "application/vnd.google-apps.folder",
	"file":    "application/vnd.google-apps.file",
	"jpg":     "image/jpeg",
	"png":     "image/png",
	"svg":     "image/svg+xml",
	"pdf":     "application/pdf",
	"html":    "text/html",
	"text":    "text/plain",
	"rich":    "application/rtf",
	"word":    "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
	"excel":   "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
	"csv":     "text/csv",
	"ppt":     "application/vnd.openxmlformats-officedocument.presentationml.presentation",
}

Functions

func InitDriveApi

func InitDriveApi() (svc *drive.Service, err error)

Types

type FileInfo

type FileInfo struct {
	Id           string
	MimeType     string
	Name         string
	Ext          string
	ParentName   string
	ParentId     string
	SingleParent bool
	ModTime      string
	Size         int64
}

Jump to

Keyboard shortcuts

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