CINXE.COM

googleapi package - google.golang.org/api/googleapi - Go Packages

<!DOCTYPE html> <html lang="en" data-layout="responsive" data-local=""> <head> <script> window.addEventListener('error', window.__err=function f(e){f.p=f.p||[];f.p.push(e)}); </script> <script> (function() { const theme = document.cookie.match(/prefers-color-scheme=(light|dark|auto)/)?.[1] if (theme) { document.querySelector('html').setAttribute('data-theme', theme); } }()) </script> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="Description" content="Package googleapi contains the common code shared by all Google API libraries."> <meta class="js-gtmID" data-gtmid="GTM-W8MVQXG"> <link rel="shortcut icon" href="/static/shared/icon/favicon.ico"> <link rel="canonical" href="https://pkg.go.dev/google.golang.org/api/googleapi"> <link href="/static/frontend/frontend.min.css?version=prod-frontend-00090-vzc" rel="stylesheet"> <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Go Packages"> <title>googleapi package - google.golang.org/api/googleapi - Go Packages</title> <link href="/static/frontend/unit/unit.min.css?version=prod-frontend-00090-vzc" rel="stylesheet"> <link href="/static/frontend/unit/main/main.min.css?version=prod-frontend-00090-vzc" rel="stylesheet"> </head> <body> <script> function loadScript(src, mod = true) { let s = document.createElement('script'); s.src = src; if (mod) { s.type = 'module'; s.async = true; s.defer = true } document.head.appendChild(s); } loadScript("/third_party/dialog-polyfill/dialog-polyfill.js", false) loadScript("/static/frontend/frontend.js"); </script> <header class="go-Header go-Header--full js-siteHeader"> <div class="go-Header-inner go-Header-inner--dark"> <nav class="go-Header-nav"> <a href="https://go.dev/" class="js-headerLogo" data-gtmc="nav link" data-test-id="go-header-logo-link" role="heading" aria-level="1"> <img class="go-Header-logo" src="/static/shared/logo/go-white.svg" alt="Go"> </a> <div class="skip-navigation-wrapper"> <a class="skip-to-content-link" aria-label="Skip to main content" href="#main-content"> Skip to Main Content </a> </div> <div class="go-Header-rightContent"> <div class="go-SearchForm js-searchForm"> <form class="go-InputGroup go-ShortcutKey go-SearchForm-form" action="/search" data-shortcut="/" data-shortcut-alt="search" data-gtmc="search form" aria-label="Search for a package" role="search" > <input name="q" class="go-Input js-searchFocus" aria-label="Search for a package" type="search" autocapitalize="off" autocomplete="off" autocorrect="off" spellcheck="false" placeholder="Search packages or symbols" value="" /> <input name="m" value="" hidden> <button class="go-Button go-Button--inverted" aria-label="Submit search"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/search_gm_grey_24dp.svg" alt="" /> </button> </form> <button class="go-SearchForm-expandSearch js-expandSearch" data-gtmc="nav button" aria-label="Open search" data-test-id="expand-search"> <img class="go-Icon go-Icon--inverted" height="24" width="24" src="/static/shared/icon/search_gm_grey_24dp.svg" alt=""> </button> </div> <ul class="go-Header-menu"> <li class="go-Header-menuItem"> <a class="js-desktop-menu-hover" href="#" data-gtmc="nav link"> Why Go <img class="go-Icon" height="24" width="24" src="/static/shared/icon/arrow_drop_down_gm_grey_24dp.svg" alt="submenu dropdown icon"> </a> <ul class="go-Header-submenu go-Header-submenu--why js-desktop-submenu-hover" aria-label="submenu"> <li class="go-Header-submenuItem"> <div> <a href="https://go.dev/solutions#case-studies"> </span>Case Studies</span> </a> </div> <p>Common problems companies solve with Go</p> </li> <li class="go-Header-submenuItem"> <div> <a href="https://go.dev/solutions#use-cases"> </span>Use Cases</span> </a> </div> <p>Stories about how and why companies use Go</p> </li> <li class="go-Header-submenuItem"> <div> <a href="https://go.dev/security/policy/"> </span>Security Policy</span> </a> </div> <p>How Go can help keep you secure by default</p> </li> </ul> </li> <li class="go-Header-menuItem"> <a href="https://go.dev/learn/" data-gtmc="nav link">Learn</a> </li> <li class="go-Header-menuItem"> <a class="js-desktop-menu-hover" href="#" data-gtmc="nav link"> Docs <img class="go-Icon" height="24" width="24" src="/static/shared/icon/arrow_drop_down_gm_grey_24dp.svg" alt="submenu dropdown icon"> </a> <ul class="go-Header-submenu go-Header-submenu--docs js-desktop-submenu-hover" aria-label="submenu"> <li class="go-Header-submenuItem"> <div> <a href="https://go.dev/doc/effective_go"> <span>Effective Go</span> </a> </div> <p>Tips for writing clear, performant, and idiomatic Go code</p> </li> <li class="go-Header-submenuItem"> <div> <a href="https://go.dev/doc/"> <span>Go User Manual</span> </a> </div> <p>A complete introduction to building software with Go</p> </li> <li class="go-Header-submenuItem"> <div> <a href="https://pkg.go.dev/std"> <span>Standard library</span> </a> </div> <p>Reference documentation for Go's standard library</p> </li> <li class="go-Header-submenuItem"> <div> <a href="https://go.dev/doc/devel/release"> <span>Release Notes</span> </a> </div> <p>Learn what's new in each Go release</p> </li> </ul> </li> <li class="go-Header-menuItem go-Header-menuItem--active"> <a href="/" data-gtmc="nav link">Packages</a> </li> <li class="go-Header-menuItem"> <a class="js-desktop-menu-hover" href="#" data-gtmc="nav link"> Community <img class="go-Icon" height="24" width="24" src="/static/shared/icon/arrow_drop_down_gm_grey_24dp.svg" alt="submenu dropdown icon"> </a> <ul class="go-Header-submenu go-Header-submenu--community js-desktop-submenu-hover" aria-label="submenu"> <li class="go-Header-submenuItem"> <div> <a href="https://go.dev/talks/"> <span>Recorded Talks</span> </a> </div> <p>Videos from prior events</p> </li> <li class="go-Header-submenuItem"> <div> <a href="https://www.meetup.com/pro/go"> <span>Meetups</span> <i class="material-icons"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/launch_gm_grey_24dp.svg" alt=""> </i> </a> </div> <p>Meet other local Go developers</p> </li> <li class="go-Header-submenuItem"> <div> <a href="https://github.com/golang/go/wiki/Conferences"> <span>Conferences</span> <i class="material-icons"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/launch_gm_grey_24dp.svg" alt=""> </i> </a> </div> <p>Learn and network with Go developers from around the world</p> </li> <li class="go-Header-submenuItem"> <div> <a href="https://go.dev/blog"> <span>Go blog</span> </a> </div> <p>The Go project's official blog.</p> </li> <li class="go-Header-submenuItem"> <div> <a href="https://go.dev/help"> <span>Go project</span> </a> </div> <p>Get help and stay informed from Go</p> </li> <li class="go-Header-submenuItem"> <div> Get connected </div> <p></p> <div class="go-Header-socialIcons"> <a class="go-Header-socialIcon" aria-label="Get connected with google-groups (Opens in new window)" href="https://groups.google.com/g/golang-nuts" ><img src="/static/shared/logo/social/google-groups.svg" /></a> <a class="go-Header-socialIcon" aria-label="Get connected with github (Opens in new window)" href="https://github.com/golang"><img src="/static/shared/logo/social/github.svg" /></a> <a class="go-Header-socialIcon" aria-label="Get connected with twitter (Opens in new window)" href="https://twitter.com/golang"><img src="/static/shared/logo/social/twitter.svg" /></a> <a class="go-Header-socialIcon" aria-label="Get connected with reddit (Opens in new window)" href="https://www.reddit.com/r/golang/"><img src="/static/shared/logo/social/reddit.svg" /></a> <a class="go-Header-socialIcon" aria-label="Get connected with slack (Opens in new window)" href="https://invite.slack.golangbridge.org/"><img src="/static/shared/logo/social/slack.svg" /></a> <a class="go-Header-socialIcon" aria-label="Get connected with stack-overflow (Opens in new window)" href="https://stackoverflow.com/collectives/go"><img src="/static/shared/logo/social/stack-overflow.svg" /></a> </div> </li> </ul> </li> </ul> <button class="go-Header-navOpen js-headerMenuButton go-Header-navOpen--white" data-gtmc="nav button" aria-label="Open navigation"> </button> </div> </nav> </div> </header> <aside class="go-NavigationDrawer js-header"> <nav class="go-NavigationDrawer-nav"> <div class="go-NavigationDrawer-header"> <a href="https://go.dev/"> <img class="go-NavigationDrawer-logo" src="/static/shared/logo/go-blue.svg" alt="Go."> </a> </div> <ul class="go-NavigationDrawer-list"> <li class="go-NavigationDrawer-listItem js-mobile-subnav-trigger go-NavigationDrawer-hasSubnav"> <a href="#"> <span>Why Go</span> <i class="material-icons"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/navigate_next_gm_grey_24dp.svg" alt=""> </i> </a> <div class="go-NavigationDrawer go-NavigationDrawer-submenuItem"> <div class="go-NavigationDrawer-nav"> <div class="go-NavigationDrawer-header"> <a href="#"> <i class="material-icons"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/navigate_before_gm_grey_24dp.svg" alt=""> </i> Why Go </a> </div> <ul class="go-NavigationDrawer-list"> <li class="go-NavigationDrawer-listItem"> <a href="https://go.dev/solutions#case-studies"> Case Studies </a> </li> <li class="go-NavigationDrawer-listItem"> <a href="https://go.dev/solutions#use-cases"> Use Cases </a> </li> <li class="go-NavigationDrawer-listItem"> <a href="https://go.dev/security/policy/"> Security Policy </a> </li> </ul> </div> </div> </li> <li class="go-NavigationDrawer-listItem"> <a href="https://go.dev/learn/">Learn</a> </li> <li class="go-NavigationDrawer-listItem js-mobile-subnav-trigger go-NavigationDrawer-hasSubnav"> <a href="#"> <span>Docs</span> <i class="material-icons"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/navigate_next_gm_grey_24dp.svg" alt=""> </i> </a> <div class="go-NavigationDrawer go-NavigationDrawer-submenuItem"> <div class="go-NavigationDrawer-nav"> <div class="go-NavigationDrawer-header"> <a href="#"><i class="material-icons"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/navigate_before_gm_grey_24dp.svg" alt=""> </i> Docs </a> </div> <ul class="go-NavigationDrawer-list"> <li class="go-NavigationDrawer-listItem"> <a href="https://go.dev/doc/effective_go"> Effective Go </a> </li> <li class="go-NavigationDrawer-listItem"> <a href="https://go.dev/doc/"> Go User Manual </a> </li> <li class="go-NavigationDrawer-listItem"> <a href="https://pkg.go.dev/std"> Standard library </a> </li> <li class="go-NavigationDrawer-listItem"> <a href="https://go.dev/doc/devel/release"> Release Notes </a> </li> </ul> </div> </div> </li> <li class="go-NavigationDrawer-listItem go-NavigationDrawer-listItem--active"> <a href="/">Packages</a> </li> <li class="go-NavigationDrawer-listItem js-mobile-subnav-trigger go-NavigationDrawer-hasSubnav"> <a href="#"> <span>Community</span> <i class="material-icons"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/navigate_next_gm_grey_24dp.svg" alt=""> </i> </a> <div class="go-NavigationDrawer go-NavigationDrawer-submenuItem"> <div class="go-NavigationDrawer-nav"> <div class="go-NavigationDrawer-header"> <a href="#"> <i class="material-icons"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/navigate_before_gm_grey_24dp.svg" alt=""> </i> Community </a> </div> <ul class="go-NavigationDrawer-list"> <li class="go-NavigationDrawer-listItem"> <a href="https://go.dev/talks/"> Recorded Talks </a> </li> <li class="go-NavigationDrawer-listItem"> <a href="https://www.meetup.com/pro/go"> Meetups <i class="material-icons"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/launch_gm_grey_24dp.svg" alt=""> </i> </a> </li> <li class="go-NavigationDrawer-listItem"> <a href="https://github.com/golang/go/wiki/Conferences"> Conferences <i class="material-icons"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/launch_gm_grey_24dp.svg" alt=""> </i> </a> </li> <li class="go-NavigationDrawer-listItem"> <a href="https://go.dev/blog"> Go blog </a> </li> <li class="go-NavigationDrawer-listItem"> <a href="https://go.dev/help"> Go project </a> </li> <li class="go-NavigationDrawer-listItem"> <div>Get connected</div> <div class="go-Header-socialIcons"> <a class="go-Header-socialIcon" href="https://groups.google.com/g/golang-nuts"><img src="/static/shared/logo/social/google-groups.svg" /></a> <a class="go-Header-socialIcon" href="https://github.com/golang"><img src="/static/shared/logo/social/github.svg" /></a> <a class="go-Header-socialIcon" href="https://twitter.com/golang"><img src="/static/shared/logo/social/twitter.svg" /></a> <a class="go-Header-socialIcon" href="https://www.reddit.com/r/golang/"><img src="/static/shared/logo/social/reddit.svg" /></a> <a class="go-Header-socialIcon" href="https://invite.slack.golangbridge.org/"><img src="/static/shared/logo/social/slack.svg" /></a> <a class="go-Header-socialIcon" href="https://stackoverflow.com/collectives/go"><img src="/static/shared/logo/social/stack-overflow.svg" /></a> </div> </li> </ul> </div> </div> </li> </ul> </nav> </aside> <div class="go-NavigationDrawer-scrim js-scrim" role="presentation"></div> <main class="go-Main" id="main-content"> <div class="go-Main-banner" role="alert"></div> <header class="go-Main-header js-mainHeader"> <nav class="go-Main-headerBreadcrumb go-Breadcrumb" aria-label="Breadcrumb" data-test-id="UnitHeader-breadcrumb"> <ol> <li data-test-id="UnitHeader-breadcrumbItem"> <a href="/" data-gtmc="breadcrumb link">Discover Packages</a> </li> <li data-test-id="UnitHeader-breadcrumbItem"> <a href="/google.golang.org/api@v0.209.0" data-gtmc="breadcrumb link">google.golang.org/api</a> </li> <li> <a href="/google.golang.org/api@v0.209.0/googleapi" data-gtmc="breadcrumb link" aria-current="location" data-test-id="UnitHeader-breadcrumbCurrent"> googleapi </a> <button class="go-Button go-Button--inline go-Clipboard js-clipboard" title="Copy path to clipboard.&#10;&#10;google.golang.org/api/googleapi" aria-label="Copy Path to Clipboard" data-to-copy="google.golang.org/api/googleapi" data-gtmc="breadcrumbs button" > <img class="go-Icon go-Icon--accented" height="24" width="24" src="/static/shared/icon/content_copy_gm_grey_24dp.svg" alt="" > </button> </li> </ol> </nav> <div class="go-Main-headerContent"> <div class="go-Main-headerTitle js-stickyHeader"> <a class="go-Main-headerLogo" href="https://go.dev/" aria-hidden="true" tabindex="-1" data-gtmc="header link" aria-label="Link to Go Homepage"> <img height="78" width="207" src="/static/shared/logo/go-blue.svg" alt="Go"> </a> <h1 class="UnitHeader-titleHeading" data-test-id="UnitHeader-title">googleapi</h1> <span class="go-Chip go-Chip--inverted">package</span> <button class="go-Button go-Button--inline go-Clipboard js-clipboard" title="Copy path to clipboard.&#10;&#10;google.golang.org/api/googleapi" aria-label="Copy Path to Clipboard" data-to-copy="google.golang.org/api/googleapi" data-gtmc="title button" tabindex="-1" > <img class="go-Icon go-Icon--accented" height="24" width="24" src="/static/shared/icon/content_copy_gm_grey_24dp.svg" alt="" /> </button> </div> <div class="go-Main-headerDetails"> <span class="go-Main-headerDetailItem" data-test-id="UnitHeader-version"> <a href="?tab=versions" aria-label="Version: v0.209.0" data-gtmc="header link" aria-describedby="version-description"> <span class="go-textSubtle" aria-hidden="true">Version: </span> v0.209.0 </a> <div class="screen-reader-only" id="version-description" hidden> Opens a new window with list of versions in this module. </div> <span class="DetailsHeader-badge--latest" data-test-id="UnitHeader-minorVersionBanner"> <span class="go-Chip DetailsHeader-span--latest">Latest</span> <span class="go-Chip DetailsHeader-span--notAtLatest"> Latest <details class="go-Tooltip js-tooltip" data-gtmc="tooltip"> <summary> <img class="go-Icon go-Icon--inverted" height="24" width="24" src="/static/shared/icon/alert_gm_grey_24dp.svg" alt="Warning"> </summary> <p>This package is not in the latest version of its module.</p> </details> </span> <a href="/google.golang.org/api/googleapi" aria-label="Go to Latest Version" data-gtmc="header link"> <span class="go-Chip go-Chip--alert DetailsHeader-span--goToLatest">Go to latest</span> </a> </span> </span> <span class="go-Main-headerDetailItem" data-test-id="UnitHeader-commitTime"> Published: Nov 21, 2024 </span> <span class="go-Main-headerDetailItem" data-test-id="UnitHeader-licenses"> License: <a href="/google.golang.org/api@v0.209.0/googleapi?tab=licenses" data-test-id="UnitHeader-license" data-gtmc="header link" aria-describedby="license-description">BSD-3-Clause</a> </span> <div class="screen-reader-only" id="license-description" hidden> Opens a new window with license information. </div> <span class="go-Main-headerDetailItem" data-test-id="UnitHeader-imports"> <a href="/google.golang.org/api@v0.209.0/googleapi?tab=imports" aria-label="Imports: 11" data-gtmc="header link" aria-describedby="imports-description"> <span class="go-textSubtle">Imports: </span>11 </a> </span> <div class="screen-reader-only" id="imports-description" hidden> Opens a new window with list of imports. </div> <span class="go-Main-headerDetailItem" data-test-id="UnitHeader-importedby"> <a href="/google.golang.org/api@v0.209.0/googleapi?tab=importedby" aria-label="Imported By: 18,877" data-gtmc="header link" aria-describedby="importedby-description"> <span class="go-textSubtle">Imported by: </span>18,877 </a> </span> <div class="screen-reader-only" id="importedby-description" hidden> Opens a new window with list of known importers. </div> </div> <div class="UnitHeader-overflowContainer"> <svg class="UnitHeader-overflowImage" xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"> <path d="M0 0h24v24H0z" fill="none"/> <path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/> </svg> <select class="UnitHeader-overflowSelect js-selectNav" tabindex="-1"> <option value="/">Main</option> <option value="/google.golang.org/api@v0.209.0/googleapi?tab=versions"> Versions </option> <option value="/google.golang.org/api@v0.209.0/googleapi?tab=licenses"> Licenses </option> <option value="/google.golang.org/api@v0.209.0/googleapi?tab=imports"> Imports </option> <option value="/google.golang.org/api@v0.209.0/googleapi?tab=importedby"> Imported By </option> </select> </div> </div> </header> <aside class="go-Main-aside js-mainAside"> <div class="UnitMeta"> <h2 class="go-textLabel">Details</h2> <ul class="UnitMeta-details"> <li> <details class="go-Tooltip js-tooltip" data-gtmc="tooltip"> <summary class="go-textSubtle"> <img class="go-Icon go-Icon--accented"src="/static/shared/icon/check_circle_gm_grey_24dp.svg" alt="checked"height="24" width="24"> Valid <a href="https://github.com/googleapis/google-api-go-client/tree/v0.209.0/go.mod" target="_blank" rel="noopener">go.mod</a> file <img class="go-Icon" src="/static/shared/icon/help_gm_grey_24dp.svg" alt="" height="24" width="24"> </summary> <p> The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go. </p> </details> </li> <li> <details class="go-Tooltip js-tooltip" data-gtmc="tooltip"> <summary class="go-textSubtle"> <img class="go-Icon go-Icon--accented"src="/static/shared/icon/check_circle_gm_grey_24dp.svg" alt="checked"height="24" width="24"> Redistributable license <img class="go-Icon" src="/static/shared/icon/help_gm_grey_24dp.svg" alt="" height="24" width="24"> </summary> <p> Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed. </p> </details> </li> <li> <details class="go-Tooltip js-tooltip" data-gtmc="tooltip"> <summary class="go-textSubtle"> <img class="go-Icon go-Icon--accented"src="/static/shared/icon/check_circle_gm_grey_24dp.svg" alt="checked"height="24" width="24"> Tagged version <img class="go-Icon" src="/static/shared/icon/help_gm_grey_24dp.svg" alt="" height="24" width="24"> </summary> <p>Modules with tagged versions give importers more predictable builds.</p> </details> </li> <li> <details class="go-Tooltip js-tooltip" data-gtmc="tooltip"> <summary class="go-textSubtle"> <img class="go-Icon"src="/static/shared/icon/cancel_gm_grey_24dp.svg" alt="unchecked"height="24" width="24"> Stable version <img class="go-Icon" src="/static/shared/icon/help_gm_grey_24dp.svg" alt="" height="24" width="24"> </summary> <p>When a project reaches major version v1 it is considered stable.</p> </details> </li> <li class="UnitMeta-detailsLearn"> <a href="/about#best-practices" data-gtmc="meta link">Learn more about best practices</a> </li> </ul> <h2 class="go-textLabel">Repository</h2> <div class="UnitMeta-repo"> <a href="https://github.com/googleapis/google-api-go-client" title="https://github.com/googleapis/google-api-go-client" target="_blank" rel="noopener"> github.com/googleapis/google-api-go-client </a> </div> <h2 class="go-textLabel">Links</h2> <ul class="UnitMeta-links"> <li> <a href="https://deps.dev/go/google.golang.org%2Fapi/v0.209.0" title="View this module on Open Source Insights" target="_blank" rel="noopener" data-test-id="meta-link-depsdev"> <img class="depsdev-Icon" src="/static/shared/icon/depsdev-logo.svg" alt="Open Source Insights Logo" /> Open Source Insights </a> </li> </ul> </div> </aside> <nav class="go-Main-nav go-Main-nav--sticky js-mainNav" aria-label="Outline"> <div class="go-Main-navDesktop"> <div class="UnitOutline-jumpTo"> <button class="UnitOutline-jumpToInput go-ShortcutKey js-jumpToInput" aria-controls="jump-to-modal" aria-label="Open Jump to Identifier" data-shortcut="f" data-shortcut-alt="find" data-test-id="jump-to-button" data-gtmc="outline button"> Jump to ... </button> </div> <ul class="go-Tree js-tree" role="tree" aria-label="Outline"> <li> <a href="#section-documentation" data-gtmc="outline link"> Documentation </a> <ul> <li> <a href="#pkg-overview" data-gtmc="doc outline link">Overview</a> </li> <li class="DocNav-overview"> <a href="#pkg-index" data-gtmc="doc outline link"> Index </a> </li> <li class="DocNav-constants"> <a href="#pkg-constants" data-gtmc="doc outline link"> Constants </a> </li> <li class="DocNav-variables"> <a href="#pkg-variables" data-gtmc="doc outline link"> Variables </a> </li> <li class="DocNav-functions"> <a href="#pkg-functions" data-gtmc="doc outline link"> Functions </a> <ul> <li> <a href="#Bool" title="Bool(v)" data-gtmc="doc outline link"> Bool(v) </a> </li> <li> <a href="#CheckMediaResponse" title="CheckMediaResponse(res)" data-gtmc="doc outline link"> CheckMediaResponse(res) </a> </li> <li> <a href="#CheckResponse" title="CheckResponse(res)" data-gtmc="doc outline link"> CheckResponse(res) </a> </li> <li> <a href="#CloseBody" title="CloseBody(res)" data-gtmc="doc outline link"> CloseBody(res) </a> </li> <li> <a href="#CombineFields" title="CombineFields(s)" data-gtmc="doc outline link"> CombineFields(s) </a> </li> <li> <a href="#ConvertVariant" title="ConvertVariant(v, dst)" data-gtmc="doc outline link"> ConvertVariant(v, dst) </a> </li> <li> <a href="#Expand" title="Expand(u, expansions)" data-gtmc="doc outline link"> Expand(u, expansions) </a> </li> <li> <a href="#Float64" title="Float64(v)" data-gtmc="doc outline link"> Float64(v) </a> </li> <li> <a href="#Int32" title="Int32(v)" data-gtmc="doc outline link"> Int32(v) </a> </li> <li> <a href="#Int64" title="Int64(v)" data-gtmc="doc outline link"> Int64(v) </a> </li> <li> <a href="#IsNotModified" title="IsNotModified(err)" data-gtmc="doc outline link"> IsNotModified(err) </a> </li> <li> <a href="#ResolveRelative" title="ResolveRelative(basestr, relstr)" data-gtmc="doc outline link"> ResolveRelative(basestr, relstr) </a> </li> <li> <a href="#String" title="String(v)" data-gtmc="doc outline link"> String(v) </a> </li> <li> <a href="#Uint32" title="Uint32(v)" data-gtmc="doc outline link"> Uint32(v) </a> </li> <li> <a href="#Uint64" title="Uint64(v)" data-gtmc="doc outline link"> Uint64(v) </a> </li> <li> <a href="#VariantType" title="VariantType(t)" data-gtmc="doc outline link"> VariantType(t) </a> </li> </ul> </li> <li class="DocNav-types"> <a href="#pkg-types" data-gtmc="doc outline link"> Types </a> <ul> <li> <a href="#CallOption" title="type CallOption" data-gtmc="doc outline link"> type CallOption </a> <ul> <li> <a href="#QueryParameter" title="QueryParameter(key, values)" data-gtmc="doc outline link"> QueryParameter(key, values) </a> </li> <li> <a href="#QuotaUser" title="QuotaUser(u)" data-gtmc="doc outline link"> QuotaUser(u) </a> </li> <li> <a href="#Trace" title="Trace(traceToken)" data-gtmc="doc outline link"> Trace(traceToken) </a> </li> <li> <a href="#UserIP" title="UserIP(ip)" data-gtmc="doc outline link"> UserIP(ip) </a> </li> </ul> </li> <li> <a href="#ContentTyper" title="type ContentTyper" data-gtmc="doc outline link"> type ContentTyper </a> </li> <li> <a href="#Error" title="type Error" data-gtmc="doc outline link"> type Error </a> <ul> <li> <a href="#Error.Error" title="(e) Error()" data-gtmc="doc outline link"> (e) Error() </a> </li> <li> <a href="#Error.Unwrap" title="(e) Unwrap()" data-gtmc="doc outline link"> (e) Unwrap() </a> </li> <li> <a href="#Error.Wrap" title="(e) Wrap(err)" data-gtmc="doc outline link"> (e) Wrap(err) </a> </li> </ul> </li> <li> <a href="#ErrorItem" title="type ErrorItem" data-gtmc="doc outline link"> type ErrorItem </a> </li> <li> <a href="#Field" title="type Field" data-gtmc="doc outline link"> type Field </a> </li> <li> <a href="#Float64s" title="type Float64s" data-gtmc="doc outline link"> type Float64s </a> <ul> <li> <a href="#Float64s.MarshalJSON" title="(q) MarshalJSON()" data-gtmc="doc outline link"> (q) MarshalJSON() </a> </li> <li> <a href="#Float64s.UnmarshalJSON" title="(q) UnmarshalJSON(raw)" data-gtmc="doc outline link"> (q) UnmarshalJSON(raw) </a> </li> </ul> </li> <li> <a href="#Int32s" title="type Int32s" data-gtmc="doc outline link"> type Int32s </a> <ul> <li> <a href="#Int32s.MarshalJSON" title="(q) MarshalJSON()" data-gtmc="doc outline link"> (q) MarshalJSON() </a> </li> <li> <a href="#Int32s.UnmarshalJSON" title="(q) UnmarshalJSON(raw)" data-gtmc="doc outline link"> (q) UnmarshalJSON(raw) </a> </li> </ul> </li> <li> <a href="#Int64s" title="type Int64s" data-gtmc="doc outline link"> type Int64s </a> <ul> <li> <a href="#Int64s.MarshalJSON" title="(q) MarshalJSON()" data-gtmc="doc outline link"> (q) MarshalJSON() </a> </li> <li> <a href="#Int64s.UnmarshalJSON" title="(q) UnmarshalJSON(raw)" data-gtmc="doc outline link"> (q) UnmarshalJSON(raw) </a> </li> </ul> </li> <li> <a href="#MarshalStyle" title="type MarshalStyle" data-gtmc="doc outline link"> type MarshalStyle </a> <ul> <li> <a href="#MarshalStyle.JSONReader" title="(wrap) JSONReader(v)" data-gtmc="doc outline link"> (wrap) JSONReader(v) </a> </li> </ul> </li> <li> <a href="#MediaOption" title="type MediaOption" data-gtmc="doc outline link"> type MediaOption </a> <ul> <li> <a href="#ChunkRetryDeadline" title="ChunkRetryDeadline(deadline)" data-gtmc="doc outline link"> ChunkRetryDeadline(deadline) </a> </li> <li> <a href="#ChunkSize" title="ChunkSize(size)" data-gtmc="doc outline link"> ChunkSize(size) </a> </li> <li> <a href="#ChunkTransferTimeout" title="ChunkTransferTimeout(timeout)" data-gtmc="doc outline link"> ChunkTransferTimeout(timeout) </a> </li> <li> <a href="#ContentType" title="ContentType(ctype)" data-gtmc="doc outline link"> ContentType(ctype) </a> </li> </ul> </li> <li> <a href="#MediaOptions" title="type MediaOptions" data-gtmc="doc outline link"> type MediaOptions </a> <ul> <li> <a href="#ProcessMediaOptions" title="ProcessMediaOptions(opts)" data-gtmc="doc outline link"> ProcessMediaOptions(opts) </a> </li> </ul> </li> <li> <a href="#MultiCallOption" title="type MultiCallOption" data-gtmc="doc outline link"> type MultiCallOption </a> </li> <li> <a href="#ProgressUpdater" title="type ProgressUpdater" data-gtmc="doc outline link"> type ProgressUpdater </a> </li> <li> <a href="#RawMessage" title="type RawMessage" data-gtmc="doc outline link"> type RawMessage </a> <ul> <li> <a href="#RawMessage.MarshalJSON" title="(m) MarshalJSON()" data-gtmc="doc outline link"> (m) MarshalJSON() </a> </li> <li> <a href="#RawMessage.UnmarshalJSON" title="(m) UnmarshalJSON(data)" data-gtmc="doc outline link"> (m) UnmarshalJSON(data) </a> </li> </ul> </li> <li> <a href="#ServerResponse" title="type ServerResponse" data-gtmc="doc outline link"> type ServerResponse </a> </li> <li> <a href="#SizeReaderAt" title="type SizeReaderAt" data-gtmc="doc outline link"> type SizeReaderAt </a> </li> <li> <a href="#Uint32s" title="type Uint32s" data-gtmc="doc outline link"> type Uint32s </a> <ul> <li> <a href="#Uint32s.MarshalJSON" title="(q) MarshalJSON()" data-gtmc="doc outline link"> (q) MarshalJSON() </a> </li> <li> <a href="#Uint32s.UnmarshalJSON" title="(q) UnmarshalJSON(raw)" data-gtmc="doc outline link"> (q) UnmarshalJSON(raw) </a> </li> </ul> </li> <li> <a href="#Uint64s" title="type Uint64s" data-gtmc="doc outline link"> type Uint64s </a> <ul> <li> <a href="#Uint64s.MarshalJSON" title="(q) MarshalJSON()" data-gtmc="doc outline link"> (q) MarshalJSON() </a> </li> <li> <a href="#Uint64s.UnmarshalJSON" title="(q) UnmarshalJSON(raw)" data-gtmc="doc outline link"> (q) UnmarshalJSON(raw) </a> </li> </ul> </li> </ul> </li> </ul> </li> <li> <a href="#section-sourcefiles" data-gtmc="outline link"> Source Files </a> </li> <li> <a href="#section-directories" data-gtmc="outline link"> Directories </a> </li> </ul> </div> <div class="go-Main-navMobile js-mainNavMobile"> <label class="go-Label"> <select class="go-Select"> <option selected disabled>Documentation</option> </select> </label> </div> </nav> <article class="go-Main-article js-mainContent"> <div class="UnitDetails" data-test-id="UnitDetails" style="display: block;"> <div class="UnitDetails-content js-unitDetailsContent" data-test-id="UnitDetails-content"> <div class="UnitDoc"> <h2 class="UnitDoc-title" id="section-documentation"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/code_gm_grey_24dp.svg" alt=""> Documentation <a class="UnitDoc-idLink" href="#section-documentation" aria-label="Go to Documentation">露</a> </h2> <div class="Documentation js-documentation"> <div class="Documentation-content js-docContent"> <section class="Documentation-overview"> <h3 tabindex="-1" id="pkg-overview" class="Documentation-overviewHeader">Overview <a href="#pkg-overview" aria-label="Go to Overview">露</a></h3> <p>Package googleapi contains the common code shared by all Google API libraries. </p> </section><section class="Documentation-index"> <h3 id="pkg-index" class="Documentation-indexHeader">Index <a href="#pkg-index" aria-label="Go to Index">露</a></h3> <ul class="Documentation-indexList"> <li class="Documentation-indexConstants"><a href="#pkg-constants">Constants</a></li> <li class="Documentation-indexVariables"><a href="#pkg-variables">Variables</a></li> <li class="Documentation-indexFunction"> <a href="#Bool">func Bool(v bool) *bool</a></li> <li class="Documentation-indexFunction"> <a href="#CheckMediaResponse">func CheckMediaResponse(res *http.Response) error</a></li> <li class="Documentation-indexFunction"> <a href="#CheckResponse">func CheckResponse(res *http.Response) error</a></li> <li class="Documentation-indexFunction"> <a href="#CloseBody">func CloseBody(res *http.Response)</a></li> <li class="Documentation-indexFunction"> <a href="#CombineFields">func CombineFields(s []Field) string</a></li> <li class="Documentation-indexFunction"> <a href="#ConvertVariant">func ConvertVariant(v map[string]interface{}, dst interface{}) bool</a></li> <li class="Documentation-indexFunction"> <a href="#Expand">func Expand(u *url.URL, expansions map[string]string)</a></li> <li class="Documentation-indexFunction"> <a href="#Float64">func Float64(v float64) *float64</a></li> <li class="Documentation-indexFunction"> <a href="#Int32">func Int32(v int32) *int32</a></li> <li class="Documentation-indexFunction"> <a href="#Int64">func Int64(v int64) *int64</a></li> <li class="Documentation-indexFunction"> <a href="#IsNotModified">func IsNotModified(err error) bool</a></li> <li class="Documentation-indexFunction"> <a href="#ResolveRelative">func ResolveRelative(basestr, relstr string) string</a></li> <li class="Documentation-indexFunction"> <a href="#String">func String(v string) *string</a></li> <li class="Documentation-indexFunction"> <a href="#Uint32">func Uint32(v uint32) *uint32</a></li> <li class="Documentation-indexFunction"> <a href="#Uint64">func Uint64(v uint64) *uint64</a></li> <li class="Documentation-indexFunction"> <a href="#VariantType">func VariantType(t map[string]interface{}) string</a></li> <li class="Documentation-indexType"> <a href="#CallOption">type CallOption</a></li> <li><ul class="Documentation-indexTypeFunctions"> <li> <a href="#QueryParameter">func QueryParameter(key string, values ...string) CallOption</a></li> <li> <a href="#QuotaUser">func QuotaUser(u string) CallOption</a></li> <li> <a href="#Trace">func Trace(traceToken string) CallOption</a></li> <li> <a href="#UserIP">func UserIP(ip string) CallOption</a></li> </ul></li> <li class="Documentation-indexType"> <a href="#ContentTyper">type ContentTyper</a></li> <li class="Documentation-indexType"> <a href="#Error">type Error</a></li> <li><ul class="Documentation-indexTypeMethods"> <li> <a href="#Error.Error">func (e *Error) Error() string</a></li> <li> <a href="#Error.Unwrap">func (e *Error) Unwrap() error</a></li> <li> <a href="#Error.Wrap">func (e *Error) Wrap(err error)</a></li> </ul></li> <li class="Documentation-indexType"> <a href="#ErrorItem">type ErrorItem</a></li> <li class="Documentation-indexType"> <a href="#Field">type Field</a></li> <li class="Documentation-indexType"> <a href="#Float64s">type Float64s</a></li> <li><ul class="Documentation-indexTypeMethods"> <li> <a href="#Float64s.MarshalJSON">func (q Float64s) MarshalJSON() ([]byte, error)</a></li> <li> <a href="#Float64s.UnmarshalJSON">func (q *Float64s) UnmarshalJSON(raw []byte) error</a></li> </ul></li> <li class="Documentation-indexType"> <a href="#Int32s">type Int32s</a></li> <li><ul class="Documentation-indexTypeMethods"> <li> <a href="#Int32s.MarshalJSON">func (q Int32s) MarshalJSON() ([]byte, error)</a></li> <li> <a href="#Int32s.UnmarshalJSON">func (q *Int32s) UnmarshalJSON(raw []byte) error</a></li> </ul></li> <li class="Documentation-indexType"> <a href="#Int64s">type Int64s</a></li> <li><ul class="Documentation-indexTypeMethods"> <li> <a href="#Int64s.MarshalJSON">func (q Int64s) MarshalJSON() ([]byte, error)</a></li> <li> <a href="#Int64s.UnmarshalJSON">func (q *Int64s) UnmarshalJSON(raw []byte) error</a></li> </ul></li> <li class="Documentation-indexType"> <a href="#MarshalStyle">type MarshalStyle</a></li> <li><ul class="Documentation-indexTypeMethods"> <li> <a href="#MarshalStyle.JSONReader">func (wrap MarshalStyle) JSONReader(v interface{}) (io.Reader, error)</a></li> </ul></li> <li class="Documentation-indexType"> <a href="#MediaOption">type MediaOption</a></li> <li><ul class="Documentation-indexTypeFunctions"> <li> <a href="#ChunkRetryDeadline">func ChunkRetryDeadline(deadline time.Duration) MediaOption</a></li> <li> <a href="#ChunkSize">func ChunkSize(size int) MediaOption</a></li> <li> <a href="#ChunkTransferTimeout">func ChunkTransferTimeout(timeout time.Duration) MediaOption</a></li> <li> <a href="#ContentType">func ContentType(ctype string) MediaOption</a></li> </ul></li> <li class="Documentation-indexType"> <a href="#MediaOptions">type MediaOptions</a></li> <li><ul class="Documentation-indexTypeFunctions"> <li> <a href="#ProcessMediaOptions">func ProcessMediaOptions(opts []MediaOption) *MediaOptions</a></li> </ul></li> <li class="Documentation-indexType"> <a href="#MultiCallOption">type MultiCallOption</a></li> <li class="Documentation-indexType"> <a href="#ProgressUpdater">type ProgressUpdater</a></li> <li class="Documentation-indexType"> <a href="#RawMessage">type RawMessage</a></li> <li><ul class="Documentation-indexTypeMethods"> <li> <a href="#RawMessage.MarshalJSON">func (m RawMessage) MarshalJSON() ([]byte, error)</a></li> <li> <a href="#RawMessage.UnmarshalJSON">func (m *RawMessage) UnmarshalJSON(data []byte) error</a></li> </ul></li> <li class="Documentation-indexType"> <a href="#ServerResponse">type ServerResponse</a></li> <li class="Documentation-indexType"> <a href="#SizeReaderAt">type SizeReaderAt</a></li> <li class="Documentation-indexType"> <a href="#Uint32s">type Uint32s</a></li> <li><ul class="Documentation-indexTypeMethods"> <li> <a href="#Uint32s.MarshalJSON">func (q Uint32s) MarshalJSON() ([]byte, error)</a></li> <li> <a href="#Uint32s.UnmarshalJSON">func (q *Uint32s) UnmarshalJSON(raw []byte) error</a></li> </ul></li> <li class="Documentation-indexType"> <a href="#Uint64s">type Uint64s</a></li> <li><ul class="Documentation-indexTypeMethods"> <li> <a href="#Uint64s.MarshalJSON">func (q Uint64s) MarshalJSON() ([]byte, error)</a></li> <li> <a href="#Uint64s.UnmarshalJSON">func (q *Uint64s) UnmarshalJSON(raw []byte) error</a></li> </ul></li> </ul> </section><h3 tabindex="-1" id="pkg-constants" class="Documentation-constantsHeader">Constants <a href="#pkg-constants" aria-label="Go to Constants">露</a></h3> <section class="Documentation-constants"> <div class="Documentation-declaration"> <span class="Documentation-declarationLink"><a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L47">View Source</a></span> <pre>const ( <span id="Version" data-kind="constant"> <span class="comment">// Version defines the gax version being used. This is typically sent</span> </span> <span class="comment">// in an HTTP header to services.</span> Version = &#34;0.5&#34; <span id="UserAgent" data-kind="constant"> <span class="comment">// UserAgent is the header string used to identify this package.</span> </span> UserAgent = &#34;google-api-go-client/&#34; + <a href="#Version">Version</a> <span id="DefaultUploadChunkSize" data-kind="constant"> <span class="comment">// DefaultUploadChunkSize is the default chunk size to use for resumable</span> </span> <span class="comment">// uploads if not specified by the user.</span> DefaultUploadChunkSize = 16 * 1024 * 1024 <span id="MinUploadChunkSize" data-kind="constant"> <span class="comment">// MinUploadChunkSize is the minimum chunk size that can be used for</span> </span> <span class="comment">// resumable uploads. All user-specified chunk sizes must be multiple of</span> <span class="comment">// this value.</span> MinUploadChunkSize = 256 * 1024 )</pre> </div> </section> <h3 tabindex="-1" id="pkg-variables" class="Documentation-variablesHeader">Variables <a href="#pkg-variables" aria-label="Go to Variables">露</a></h3> <section class="Documentation-variables"> <div class="Documentation-declaration"> <span class="Documentation-declarationLink"><a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L198">View Source</a></span> <pre><span id="WithDataWrapper" data-kind="variable">var WithDataWrapper = <a href="#MarshalStyle">MarshalStyle</a>(<a href="/builtin#true">true</a>)</span></pre> </div> <p>WithDataWrapper marshals JSON with a {&#34;data&#34;: ...} wrapper. </p> <div class="Documentation-declaration"> <span class="Documentation-declarationLink"><a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L201">View Source</a></span> <pre><span id="WithoutDataWrapper" data-kind="variable">var WithoutDataWrapper = <a href="#MarshalStyle">MarshalStyle</a>(<a href="/builtin#false">false</a>)</span></pre> </div> <p>WithoutDataWrapper marshals JSON without a {&#34;data&#34;: ...} wrapper. </p> </section> <h3 tabindex="-1" id="pkg-functions" class="Documentation-functionsHeader">Functions <a href="#pkg-functions" aria-label="Go to Functions">露</a></h3> <section class="Documentation-functions"><div class="Documentation-function"> <h4 tabindex="-1" id="Bool" data-kind="function" class="Documentation-functionHeader"> <span>func <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go#L178">Bool</a> <a class="Documentation-idLink" href="#Bool" aria-label="Go to Bool">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func Bool(v <a href="/builtin#bool">bool</a>) *<a href="/builtin#bool">bool</a></pre> </div> <p>Bool is a helper routine that allocates a new bool value to store v and returns a pointer to it. </p> </div><div class="Documentation-function"> <h4 tabindex="-1" id="CheckMediaResponse" data-kind="function" class="Documentation-functionHeader"> <span>func <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L182">CheckMediaResponse</a> <a class="Documentation-idLink" href="#CheckMediaResponse" aria-label="Go to CheckMediaResponse">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func CheckMediaResponse(res *<a href="/net/http">http</a>.<a href="/net/http#Response">Response</a>) <a href="/builtin#error">error</a></pre> </div> <p>CheckMediaResponse returns an error (of type *Error) if the response status code is not 2xx. Unlike CheckResponse it does not assume the body is a JSON error document. It is the caller&#39;s responsibility to close res.Body. </p> </div><div class="Documentation-function"> <h4 tabindex="-1" id="CheckResponse" data-kind="function" class="Documentation-functionHeader"> <span>func <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L142">CheckResponse</a> <a class="Documentation-idLink" href="#CheckResponse" aria-label="Go to CheckResponse">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func CheckResponse(res *<a href="/net/http">http</a>.<a href="/net/http#Response">Response</a>) <a href="/builtin#error">error</a></pre> </div> <p>CheckResponse returns an error (of type *Error) if the response status code is not 2xx. </p> </div><div class="Documentation-function"> <h4 tabindex="-1" id="CloseBody" data-kind="function" class="Documentation-functionHeader"> <span>func <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L360">CloseBody</a> <a class="Documentation-idLink" href="#CloseBody" aria-label="Go to CloseBody">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func CloseBody(res *<a href="/net/http">http</a>.<a href="/net/http#Response">Response</a>)</pre> </div> <p>CloseBody is used to close res.Body. Prior to calling Close, it also tries to Read a small amount to see an EOF. Not seeing an EOF can prevent HTTP Transports from reusing connections. </p> </div><div class="Documentation-function"> <h4 tabindex="-1" id="CombineFields" data-kind="function" class="Documentation-functionHeader"> <span>func <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L423">CombineFields</a> <a class="Documentation-idLink" href="#CombineFields" aria-label="Go to CombineFields">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func CombineFields(s []<a href="#Field">Field</a>) <a href="/builtin#string">string</a></pre> </div> <p>CombineFields combines fields into a single string. </p> </div><div class="Documentation-function"> <h4 tabindex="-1" id="ConvertVariant" data-kind="function" class="Documentation-functionHeader"> <span>func <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L391">ConvertVariant</a> <a class="Documentation-idLink" href="#ConvertVariant" aria-label="Go to ConvertVariant">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func ConvertVariant(v map[<a href="/builtin#string">string</a>]interface{}, dst interface{}) <a href="/builtin#bool">bool</a></pre> </div> <p>ConvertVariant uses the JSON encoder/decoder to fill in the struct &#39;dst&#39; with the fields found in variant &#39;v&#39;. This is used to support &#34;variant&#34; APIs that can return one of a number of different types. It reports whether the conversion was successful. </p> </div><div class="Documentation-function"> <h4 tabindex="-1" id="Expand" data-kind="function" class="Documentation-functionHeader"> <span>func <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L349">Expand</a> <a class="Documentation-idLink" href="#Expand" aria-label="Go to Expand">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func Expand(u *<a href="/net/url">url</a>.<a href="/net/url#URL">URL</a>, expansions map[<a href="/builtin#string">string</a>]<a href="/builtin#string">string</a>)</pre> </div> <p>Expand subsitutes any {encoded} strings in the URL passed in using the map supplied. </p><p>This calls SetOpaque to avoid encoding of the parameters in the URL path. </p> </div><div class="Documentation-function"> <h4 tabindex="-1" id="Float64" data-kind="function" class="Documentation-functionHeader"> <span>func <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go#L190">Float64</a> <a class="Documentation-idLink" href="#Float64" aria-label="Go to Float64">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func Float64(v <a href="/builtin#float64">float64</a>) *<a href="/builtin#float64">float64</a></pre> </div> <p>Float64 is a helper routine that allocates a new float64 value to store v and returns a pointer to it. </p> </div><div class="Documentation-function"> <h4 tabindex="-1" id="Int32" data-kind="function" class="Documentation-functionHeader"> <span>func <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go#L182">Int32</a> <a class="Documentation-idLink" href="#Int32" aria-label="Go to Int32">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func Int32(v <a href="/builtin#int32">int32</a>) *<a href="/builtin#int32">int32</a></pre> </div> <p>Int32 is a helper routine that allocates a new int32 value to store v and returns a pointer to it. </p> </div><div class="Documentation-function"> <h4 tabindex="-1" id="Int64" data-kind="function" class="Documentation-functionHeader"> <span>func <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go#L186">Int64</a> <a class="Documentation-idLink" href="#Int64" aria-label="Go to Int64">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func Int64(v <a href="/builtin#int64">int64</a>) *<a href="/builtin#int64">int64</a></pre> </div> <p>Int64 is a helper routine that allocates a new int64 value to store v and returns a pointer to it. </p> </div><div class="Documentation-function"> <h4 tabindex="-1" id="IsNotModified" data-kind="function" class="Documentation-functionHeader"> <span>func <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L170">IsNotModified</a> <a class="Documentation-idLink" href="#IsNotModified" aria-label="Go to IsNotModified">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func IsNotModified(err <a href="/builtin#error">error</a>) <a href="/builtin#bool">bool</a></pre> </div> <p>IsNotModified reports whether err is the result of the server replying with http.StatusNotModified. Such error values are sometimes returned by &#34;Do&#34; methods on calls when If-None-Match is used. </p> </div><div class="Documentation-function"> <h4 tabindex="-1" id="ResolveRelative" data-kind="function" class="Documentation-functionHeader"> <span>func <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L320">ResolveRelative</a> <a class="Documentation-idLink" href="#ResolveRelative" aria-label="Go to ResolveRelative">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func ResolveRelative(basestr, relstr <a href="/builtin#string">string</a>) <a href="/builtin#string">string</a></pre> </div> <p>ResolveRelative resolves relatives such as &#34;<a href="http://www.golang.org/">http://www.golang.org/</a>&#34; and &#34;topics/myproject/mytopic&#34; into a single string, such as &#34;<a href="http://www.golang.org/topics/myproject/mytopic">http://www.golang.org/topics/myproject/mytopic</a>&#34;. It strips all parent references (e.g. ../..) as well as anything after the host (e.g. /bar/gaz gets stripped out of foo.com/bar/gaz). </p><p>ResolveRelative panics if either basestr or relstr is not able to be parsed. </p> </div><div class="Documentation-function"> <h4 tabindex="-1" id="String" data-kind="function" class="Documentation-functionHeader"> <span>func <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go#L202">String</a> <a class="Documentation-idLink" href="#String" aria-label="Go to String">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func String(v <a href="/builtin#string">string</a>) *<a href="/builtin#string">string</a></pre> </div> <p>String is a helper routine that allocates a new string value to store v and returns a pointer to it. </p> </div><div class="Documentation-function"> <h4 tabindex="-1" id="Uint32" data-kind="function" class="Documentation-functionHeader"> <span>func <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go#L194">Uint32</a> <a class="Documentation-idLink" href="#Uint32" aria-label="Go to Uint32">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func Uint32(v <a href="/builtin#uint32">uint32</a>) *<a href="/builtin#uint32">uint32</a></pre> </div> <p>Uint32 is a helper routine that allocates a new uint32 value to store v and returns a pointer to it. </p> </div><div class="Documentation-function"> <h4 tabindex="-1" id="Uint64" data-kind="function" class="Documentation-functionHeader"> <span>func <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go#L198">Uint64</a> <a class="Documentation-idLink" href="#Uint64" aria-label="Go to Uint64">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func Uint64(v <a href="/builtin#uint64">uint64</a>) *<a href="/builtin#uint64">uint64</a></pre> </div> <p>Uint64 is a helper routine that allocates a new uint64 value to store v and returns a pointer to it. </p> </div><div class="Documentation-function"> <h4 tabindex="-1" id="VariantType" data-kind="function" class="Documentation-functionHeader"> <span>func <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L383">VariantType</a> <a class="Documentation-idLink" href="#VariantType" aria-label="Go to VariantType">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func VariantType(t map[<a href="/builtin#string">string</a>]interface{}) <a href="/builtin#string">string</a></pre> </div> <p>VariantType returns the type name of the given variant. If the map doesn&#39;t contain the named key or the value is not a []interface{}, &#34;&#34; is returned. This is used to support &#34;variant&#34; APIs that can return one of a number of different types. </p> </div></section> <h3 tabindex="-1" id="pkg-types" class="Documentation-typesHeader">Types <a href="#pkg-types" aria-label="Go to Types">露</a></h3> <section class="Documentation-types"><div class="Documentation-type"> <h4 tabindex="-1" id="CallOption" data-kind="type" class="Documentation-typeHeader"> <span>type <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L437">CallOption</a> <a class="Documentation-idLink" href="#CallOption" aria-label="Go to CallOption">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>type CallOption interface { <span id="CallOption.Get" data-kind="method"> Get() (key, value <a href="/builtin#string">string</a>) </span>}</pre> </div> <p>A CallOption is an optional argument to an API call. It should be treated as an opaque value by users of Google APIs. </p><p>A CallOption is something that configures an API call in a way that is not specific to that API; for instance, controlling the quota user for an API call is common across many APIs, and is thus a CallOption. </p> <div class="Documentation-typeFunc"> <h4 tabindex="-1" id="QueryParameter" data-kind="function" class="Documentation-typeFuncHeader"> <span>func <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L481">QueryParameter</a> <a class="Documentation-idLink" href="#QueryParameter" aria-label="Go to QueryParameter">露</a></span> <span class="Documentation-sinceVersion"> <span class="Documentation-sinceVersionLabel">added in</span> <span class="Documentation-sinceVersionVersion">v0.53.0</span> </span> </h4> <div class="Documentation-declaration"> <pre>func QueryParameter(key <a href="/builtin#string">string</a>, values ...<a href="/builtin#string">string</a>) <a href="#CallOption">CallOption</a></pre> </div> <p>QueryParameter allows setting the value(s) of an arbitrary key. </p> </div><div class="Documentation-typeFunc"> <h4 tabindex="-1" id="QuotaUser" data-kind="function" class="Documentation-typeFuncHeader"> <span>func <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L453">QuotaUser</a> <a class="Documentation-idLink" href="#QuotaUser" aria-label="Go to QuotaUser">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func QuotaUser(u <a href="/builtin#string">string</a>) <a href="#CallOption">CallOption</a></pre> </div> <p>QuotaUser returns a CallOption that will set the quota user for a call. The quota user can be used by server-side applications to control accounting. It can be an arbitrary string up to 40 characters, and will override UserIP if both are provided. </p> </div><div class="Documentation-typeFunc"> <h4 tabindex="-1" id="Trace" data-kind="function" class="Documentation-typeFuncHeader"> <span>func <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L469">Trace</a> <a class="Documentation-idLink" href="#Trace" aria-label="Go to Trace">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func Trace(traceToken <a href="/builtin#string">string</a>) <a href="#CallOption">CallOption</a></pre> </div> <p>Trace returns a CallOption that enables diagnostic tracing for a call. traceToken is an ID supplied by Google support. </p> </div><div class="Documentation-typeFunc"> <h4 tabindex="-1" id="UserIP" data-kind="function" class="Documentation-typeFuncHeader"> <span>func <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L461">UserIP</a> <a class="Documentation-idLink" href="#UserIP" aria-label="Go to UserIP">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func UserIP(ip <a href="/builtin#string">string</a>) <a href="#CallOption">CallOption</a></pre> </div> <p>UserIP returns a CallOption that will set the &#34;userIp&#34; parameter of a call. This should be the IP address of the originating request. </p> </div> </div><div class="Documentation-type"> <h4 tabindex="-1" id="ContentTyper" data-kind="type" class="Documentation-typeHeader"> <span>type <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L26">ContentTyper</a> <a class="Documentation-idLink" href="#ContentTyper" aria-label="Go to ContentTyper">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>type ContentTyper interface { <span id="ContentTyper.ContentType" data-kind="method"> ContentType() <a href="/builtin#string">string</a> </span>}</pre> </div> <p>ContentTyper is an interface for Readers which know (or would like to override) their Content-Type. If a media body doesn&#39;t implement ContentTyper, the type is sniffed from the content using http.DetectContentType. </p> </div><div class="Documentation-type"> <h4 tabindex="-1" id="Error" data-kind="type" class="Documentation-typeHeader"> <span>type <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L66">Error</a> <a class="Documentation-idLink" href="#Error" aria-label="Go to Error">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>type Error struct { <span id="Error.Code" data-kind="field"> <span class="comment">// Code is the HTTP response status code and will always be populated.</span> </span> Code <a href="/builtin#int">int</a> `json:&#34;code&#34;` <span id="Error.Message" data-kind="field"> <span class="comment">// Message is the server response message and is only populated when</span> </span> <span class="comment">// explicitly referenced by the JSON server response.</span> Message <a href="/builtin#string">string</a> `json:&#34;message&#34;` <span id="Error.Details" data-kind="field"> <span class="comment">// Details provide more context to an error.</span> </span> Details []interface{} `json:&#34;details&#34;` <span id="Error.Body" data-kind="field"> <span class="comment">// Body is the raw response returned by the server.</span> </span> <span class="comment">// It is often but not always JSON, depending on how the request fails.</span> Body <a href="/builtin#string">string</a> <span id="Error.Header" data-kind="field"> <span class="comment">// Header contains the response header fields from the server.</span> </span> Header <a href="/net/http">http</a>.<a href="/net/http#Header">Header</a> <span id="Error.Errors" data-kind="field"> Errors []<a href="#ErrorItem">ErrorItem</a> </span> <span class="comment">// contains filtered or unexported fields</span> }</pre> </div> <p>Error contains an error response from the server. </p> <div class="Documentation-typeMethod"> <h4 tabindex="-1" id="Error.Error" data-kind="method" class="Documentation-typeMethodHeader"> <span>func (*Error) <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L94">Error</a> <a class="Documentation-idLink" href="#Error.Error" aria-label="Go to Error.Error">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func (e *<a href="#Error">Error</a>) Error() <a href="/builtin#string">string</a></pre> </div> </div><div class="Documentation-typeMethod"> <h4 tabindex="-1" id="Error.Unwrap" data-kind="method" class="Documentation-typeMethodHeader"> <span>func (*Error) <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L132">Unwrap</a> <a class="Documentation-idLink" href="#Error.Unwrap" aria-label="Go to Error.Unwrap">露</a></span> <span class="Documentation-sinceVersion"> <span class="Documentation-sinceVersionLabel">added in</span> <span class="Documentation-sinceVersionVersion">v0.103.0</span> </span> </h4> <div class="Documentation-declaration"> <pre>func (e *<a href="#Error">Error</a>) Unwrap() <a href="/builtin#error">error</a></pre> </div> </div><div class="Documentation-typeMethod"> <h4 tabindex="-1" id="Error.Wrap" data-kind="method" class="Documentation-typeMethodHeader"> <span>func (*Error) <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L128">Wrap</a> <a class="Documentation-idLink" href="#Error.Wrap" aria-label="Go to Error.Wrap">露</a></span> <span class="Documentation-sinceVersion"> <span class="Documentation-sinceVersionLabel">added in</span> <span class="Documentation-sinceVersionVersion">v0.103.0</span> </span> </h4> <div class="Documentation-declaration"> <pre>func (e *<a href="#Error">Error</a>) Wrap(err <a href="/builtin#error">error</a>)</pre> </div> <p>Wrap allows an existing Error to wrap another error. See also <a href="#Error.Unwrap">Error.Unwrap</a>. </p> </div> </div><div class="Documentation-type"> <h4 tabindex="-1" id="ErrorItem" data-kind="type" class="Documentation-typeHeader"> <span>type <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L87">ErrorItem</a> <a class="Documentation-idLink" href="#ErrorItem" aria-label="Go to ErrorItem">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>type ErrorItem struct { <span id="ErrorItem.Reason" data-kind="field"> <span class="comment">// Reason is the typed error code. For example: &#34;some_example&#34;.</span> </span> Reason <a href="/builtin#string">string</a> `json:&#34;reason&#34;` <span id="ErrorItem.Message" data-kind="field"> <span class="comment">// Message is the human-readable description of the error.</span> </span> Message <a href="/builtin#string">string</a> `json:&#34;message&#34;` }</pre> </div> <p>ErrorItem is a detailed error code &amp; message from the Google API frontend. </p> </div><div class="Documentation-type"> <h4 tabindex="-1" id="Field" data-kind="type" class="Documentation-typeHeader"> <span>type <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L420">Field</a> <a class="Documentation-idLink" href="#Field" aria-label="Go to Field">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>type Field <a href="/builtin#string">string</a></pre> </div> <p>A Field names a field to be retrieved with a partial response. <a href="https://cloud.google.com/storage/docs/json_api/v1/how-tos/performance">https://cloud.google.com/storage/docs/json_api/v1/how-tos/performance</a> </p><p>Partial responses can dramatically reduce the amount of data that must be sent to your application. In order to request partial responses, you can specify the full list of fields that your application needs by adding the Fields option to your request. </p><p>Field strings use camelCase with leading lower-case characters to identify fields within the response. </p><p>For example, if your response has a &#34;NextPageToken&#34; and a slice of &#34;Items&#34; with &#34;Id&#34; fields, you could request just those fields like this: </p><pre>svc.Events.List().Fields(&#34;nextPageToken&#34;, &#34;items/id&#34;).Do() </pre><p>or if you were also interested in each Item&#39;s &#34;Updated&#34; field, you can combine them like this: </p><pre>svc.Events.List().Fields(&#34;nextPageToken&#34;, &#34;items(id,updated)&#34;).Do() </pre><p>Another way to find field names is through the Google API explorer: <a href="https://developers.google.com/apis-explorer/#p/">https://developers.google.com/apis-explorer/#p/</a> </p> </div><div class="Documentation-type"> <h4 tabindex="-1" id="Float64s" data-kind="type" class="Documentation-typeHeader"> <span>type <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go#L90">Float64s</a> <a class="Documentation-idLink" href="#Float64s" aria-label="Go to Float64s">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>type Float64s []<a href="/builtin#float64">float64</a></pre> </div> <p>Float64s is a slice of float64s that marshal as quoted strings in JSON. </p> <div class="Documentation-typeMethod"> <h4 tabindex="-1" id="Float64s.MarshalJSON" data-kind="method" class="Documentation-typeMethodHeader"> <span>func (Float64s) <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go#L147">MarshalJSON</a> <a class="Documentation-idLink" href="#Float64s.MarshalJSON" aria-label="Go to Float64s.MarshalJSON">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func (q <a href="#Float64s">Float64s</a>) MarshalJSON() ([]<a href="/builtin#byte">byte</a>, <a href="/builtin#error">error</a>)</pre> </div> </div><div class="Documentation-typeMethod"> <h4 tabindex="-1" id="Float64s.UnmarshalJSON" data-kind="method" class="Documentation-typeMethodHeader"> <span>func (*Float64s) <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go#L92">UnmarshalJSON</a> <a class="Documentation-idLink" href="#Float64s.UnmarshalJSON" aria-label="Go to Float64s.UnmarshalJSON">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func (q *<a href="#Float64s">Float64s</a>) UnmarshalJSON(raw []<a href="/builtin#byte">byte</a>) <a href="/builtin#error">error</a></pre> </div> </div> </div><div class="Documentation-type"> <h4 tabindex="-1" id="Int32s" data-kind="type" class="Documentation-typeHeader"> <span>type <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go#L33">Int32s</a> <a class="Documentation-idLink" href="#Int32s" aria-label="Go to Int32s">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>type Int32s []<a href="/builtin#int32">int32</a></pre> </div> <p>Int32s is a slice of int32s that marshal as quoted strings in JSON. </p> <div class="Documentation-typeMethod"> <h4 tabindex="-1" id="Int32s.MarshalJSON" data-kind="method" class="Documentation-typeMethodHeader"> <span>func (Int32s) <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go#L129">MarshalJSON</a> <a class="Documentation-idLink" href="#Int32s.MarshalJSON" aria-label="Go to Int32s.MarshalJSON">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func (q <a href="#Int32s">Int32s</a>) MarshalJSON() ([]<a href="/builtin#byte">byte</a>, <a href="/builtin#error">error</a>)</pre> </div> </div><div class="Documentation-typeMethod"> <h4 tabindex="-1" id="Int32s.UnmarshalJSON" data-kind="method" class="Documentation-typeMethodHeader"> <span>func (*Int32s) <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go#L35">UnmarshalJSON</a> <a class="Documentation-idLink" href="#Int32s.UnmarshalJSON" aria-label="Go to Int32s.UnmarshalJSON">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func (q *<a href="#Int32s">Int32s</a>) UnmarshalJSON(raw []<a href="/builtin#byte">byte</a>) <a href="/builtin#error">error</a></pre> </div> </div> </div><div class="Documentation-type"> <h4 tabindex="-1" id="Int64s" data-kind="type" class="Documentation-typeHeader"> <span>type <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go#L14">Int64s</a> <a class="Documentation-idLink" href="#Int64s" aria-label="Go to Int64s">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>type Int64s []<a href="/builtin#int64">int64</a></pre> </div> <p>Int64s is a slice of int64s that marshal as quoted strings in JSON. </p> <div class="Documentation-typeMethod"> <h4 tabindex="-1" id="Int64s.MarshalJSON" data-kind="method" class="Documentation-typeMethodHeader"> <span>func (Int64s) <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go#L123">MarshalJSON</a> <a class="Documentation-idLink" href="#Int64s.MarshalJSON" aria-label="Go to Int64s.MarshalJSON">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func (q <a href="#Int64s">Int64s</a>) MarshalJSON() ([]<a href="/builtin#byte">byte</a>, <a href="/builtin#error">error</a>)</pre> </div> </div><div class="Documentation-typeMethod"> <h4 tabindex="-1" id="Int64s.UnmarshalJSON" data-kind="method" class="Documentation-typeMethodHeader"> <span>func (*Int64s) <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go#L16">UnmarshalJSON</a> <a class="Documentation-idLink" href="#Int64s.UnmarshalJSON" aria-label="Go to Int64s.UnmarshalJSON">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func (q *<a href="#Int64s">Int64s</a>) UnmarshalJSON(raw []<a href="/builtin#byte">byte</a>) <a href="/builtin#error">error</a></pre> </div> </div> </div><div class="Documentation-type"> <h4 tabindex="-1" id="MarshalStyle" data-kind="type" class="Documentation-typeHeader"> <span>type <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L195">MarshalStyle</a> <a class="Documentation-idLink" href="#MarshalStyle" aria-label="Go to MarshalStyle">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>type MarshalStyle <a href="/builtin#bool">bool</a></pre> </div> <p>MarshalStyle defines whether to marshal JSON with a {&#34;data&#34;: ...} wrapper. </p> <div class="Documentation-typeMethod"> <h4 tabindex="-1" id="MarshalStyle.JSONReader" data-kind="method" class="Documentation-typeMethodHeader"> <span>func (MarshalStyle) <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L203">JSONReader</a> <a class="Documentation-idLink" href="#MarshalStyle.JSONReader" aria-label="Go to MarshalStyle.JSONReader">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func (wrap <a href="#MarshalStyle">MarshalStyle</a>) JSONReader(v interface{}) (<a href="/io">io</a>.<a href="/io#Reader">Reader</a>, <a href="/builtin#error">error</a>)</pre> </div> </div> </div><div class="Documentation-type"> <h4 tabindex="-1" id="MediaOption" data-kind="type" class="Documentation-typeHeader"> <span>type <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L224">MediaOption</a> <a class="Documentation-idLink" href="#MediaOption" aria-label="Go to MediaOption">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>type MediaOption interface { <span class="comment">// contains filtered or unexported methods</span> }</pre> </div> <p>MediaOption defines the interface for setting media options. </p> <div class="Documentation-typeFunc"> <h4 tabindex="-1" id="ChunkRetryDeadline" data-kind="function" class="Documentation-typeFuncHeader"> <span>func <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L290">ChunkRetryDeadline</a> <a class="Documentation-idLink" href="#ChunkRetryDeadline" aria-label="Go to ChunkRetryDeadline">露</a></span> <span class="Documentation-sinceVersion"> <span class="Documentation-sinceVersionLabel">added in</span> <span class="Documentation-sinceVersionVersion">v0.67.0</span> </span> </h4> <div class="Documentation-declaration"> <pre>func ChunkRetryDeadline(deadline <a href="/time">time</a>.<a href="/time#Duration">Duration</a>) <a href="#MediaOption">MediaOption</a></pre> </div> <p>ChunkRetryDeadline returns a MediaOption which sets a per-chunk retry deadline. If a single chunk has been attempting to upload for longer than this time and the request fails, it will no longer be retried, and the error will be returned to the caller. This is only applicable for files which are large enough to require a multi-chunk resumable upload. The default value is 32s. To set a deadline on the entire upload, use context timeout or cancellation. </p> </div><div class="Documentation-typeFunc"> <h4 tabindex="-1" id="ChunkSize" data-kind="function" class="Documentation-typeFuncHeader"> <span>func <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L258">ChunkSize</a> <a class="Documentation-idLink" href="#ChunkSize" aria-label="Go to ChunkSize">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func ChunkSize(size <a href="/builtin#int">int</a>) <a href="#MediaOption">MediaOption</a></pre> </div> <p>ChunkSize returns a MediaOption which sets the chunk size for media uploads. size will be rounded up to the nearest multiple of 256K. Media which contains fewer than size bytes will be uploaded in a single request. Media which contains size bytes or more will be uploaded in separate chunks. If size is zero, media will be uploaded in a single request. </p> </div><div class="Documentation-typeFunc"> <h4 tabindex="-1" id="ChunkTransferTimeout" data-kind="function" class="Documentation-typeFuncHeader"> <span>func <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L272">ChunkTransferTimeout</a> <a class="Documentation-idLink" href="#ChunkTransferTimeout" aria-label="Go to ChunkTransferTimeout">露</a></span> <span class="Documentation-sinceVersion"> <span class="Documentation-sinceVersionLabel">added in</span> <span class="Documentation-sinceVersionVersion">v0.208.0</span> </span> </h4> <div class="Documentation-declaration"> <pre>func ChunkTransferTimeout(timeout <a href="/time">time</a>.<a href="/time#Duration">Duration</a>) <a href="#MediaOption">MediaOption</a></pre> </div> <p>ChunkTransferTimeout returns a MediaOption which sets a per-chunk transfer timeout for resumable uploads. If a single chunk has been attempting to upload for longer than this time then the old req got canceled and retried. The default is no timeout for the request. </p> </div><div class="Documentation-typeFunc"> <h4 tabindex="-1" id="ContentType" data-kind="function" class="Documentation-typeFuncHeader"> <span>func <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L239">ContentType</a> <a class="Documentation-idLink" href="#ContentType" aria-label="Go to ContentType">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func ContentType(ctype <a href="/builtin#string">string</a>) <a href="#MediaOption">MediaOption</a></pre> </div> <p>ContentType returns a MediaOption which sets the Content-Type header for media uploads. If ctype is empty, the Content-Type header will be omitted. </p> </div> </div><div class="Documentation-type"> <h4 tabindex="-1" id="MediaOptions" data-kind="type" class="Documentation-typeHeader"> <span>type <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L295">MediaOptions</a> <a class="Documentation-idLink" href="#MediaOptions" aria-label="Go to MediaOptions">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>type MediaOptions struct { <span id="MediaOptions.ContentType" data-kind="field"> ContentType <a href="/builtin#string">string</a> </span><span id="MediaOptions.ForceEmptyContentType" data-kind="field"> ForceEmptyContentType <a href="/builtin#bool">bool</a> </span><span id="MediaOptions.ChunkSize" data-kind="field"> ChunkSize <a href="/builtin#int">int</a> </span><span id="MediaOptions.ChunkRetryDeadline" data-kind="field"> ChunkRetryDeadline <a href="/time">time</a>.<a href="/time#Duration">Duration</a> </span><span id="MediaOptions.ChunkTransferTimeout" data-kind="field"> ChunkTransferTimeout <a href="/time">time</a>.<a href="/time#Duration">Duration</a> </span>}</pre> </div> <p>MediaOptions stores options for customizing media upload. It is not used by developers directly. </p> <div class="Documentation-typeFunc"> <h4 tabindex="-1" id="ProcessMediaOptions" data-kind="function" class="Documentation-typeFuncHeader"> <span>func <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L305">ProcessMediaOptions</a> <a class="Documentation-idLink" href="#ProcessMediaOptions" aria-label="Go to ProcessMediaOptions">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func ProcessMediaOptions(opts []<a href="#MediaOption">MediaOption</a>) *<a href="#MediaOptions">MediaOptions</a></pre> </div> <p>ProcessMediaOptions stores options from opts in a MediaOptions. It is not used by developers directly. </p> </div> </div><div class="Documentation-type"> <h4 tabindex="-1" id="MultiCallOption" data-kind="type" class="Documentation-typeHeader"> <span>type <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L444">MultiCallOption</a> <a class="Documentation-idLink" href="#MultiCallOption" aria-label="Go to MultiCallOption">露</a></span> <span class="Documentation-sinceVersion"> <span class="Documentation-sinceVersionLabel">added in</span> <span class="Documentation-sinceVersionVersion">v0.53.0</span> </span> </h4> <div class="Documentation-declaration"> <pre>type MultiCallOption interface { <a href="#CallOption">CallOption</a> <span id="MultiCallOption.GetMulti" data-kind="method"> GetMulti() (key <a href="/builtin#string">string</a>, value []<a href="/builtin#string">string</a>) </span>}</pre> </div> <p>A MultiCallOption is an option argument to an API call and can be passed anywhere a CallOption is accepted. It additionally supports returning a slice of values for a given key. </p> </div><div class="Documentation-type"> <h4 tabindex="-1" id="ProgressUpdater" data-kind="type" class="Documentation-typeHeader"> <span>type <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L221">ProgressUpdater</a> <a class="Documentation-idLink" href="#ProgressUpdater" aria-label="Go to ProgressUpdater">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>type ProgressUpdater func(current, total <a href="/builtin#int64">int64</a>)</pre> </div> <p>ProgressUpdater is a function that is called upon every progress update of a resumable upload. This is the only part of a resumable upload (from googleapi) that is usable by the developer. The remaining usable pieces of resumable uploads is exposed in each auto-generated API. </p> </div><div class="Documentation-type"> <h4 tabindex="-1" id="RawMessage" data-kind="type" class="Documentation-typeHeader"> <span>type <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go#L156">RawMessage</a> <a class="Documentation-idLink" href="#RawMessage" aria-label="Go to RawMessage">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>type RawMessage []<a href="/builtin#byte">byte</a></pre> </div> <p>RawMessage is a raw encoded JSON value. It is identical to json.RawMessage, except it does not suffer from <a href="https://golang.org/issue/14493">https://golang.org/issue/14493</a>. </p> <div class="Documentation-typeMethod"> <h4 tabindex="-1" id="RawMessage.MarshalJSON" data-kind="method" class="Documentation-typeMethodHeader"> <span>func (RawMessage) <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go#L159">MarshalJSON</a> <a class="Documentation-idLink" href="#RawMessage.MarshalJSON" aria-label="Go to RawMessage.MarshalJSON">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func (m <a href="#RawMessage">RawMessage</a>) MarshalJSON() ([]<a href="/builtin#byte">byte</a>, <a href="/builtin#error">error</a>)</pre> </div> <p>MarshalJSON returns m. </p> </div><div class="Documentation-typeMethod"> <h4 tabindex="-1" id="RawMessage.UnmarshalJSON" data-kind="method" class="Documentation-typeMethodHeader"> <span>func (*RawMessage) <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go#L164">UnmarshalJSON</a> <a class="Documentation-idLink" href="#RawMessage.UnmarshalJSON" aria-label="Go to RawMessage.UnmarshalJSON">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func (m *<a href="#RawMessage">RawMessage</a>) UnmarshalJSON(data []<a href="/builtin#byte">byte</a>) <a href="/builtin#error">error</a></pre> </div> <p>UnmarshalJSON sets *m to a copy of data. </p> </div> </div><div class="Documentation-type"> <h4 tabindex="-1" id="ServerResponse" data-kind="type" class="Documentation-typeHeader"> <span>type <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L39">ServerResponse</a> <a class="Documentation-idLink" href="#ServerResponse" aria-label="Go to ServerResponse">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>type ServerResponse struct { <span id="ServerResponse.HTTPStatusCode" data-kind="field"> <span class="comment">// HTTPStatusCode is the server&#39;s response status code. When using a</span> </span> <span class="comment">// resource method&#39;s Do call, this will always be in the 2xx range.</span> HTTPStatusCode <a href="/builtin#int">int</a> <span id="ServerResponse.Header" data-kind="field"> <span class="comment">// Header contains the response header fields from the server.</span> </span> Header <a href="/net/http">http</a>.<a href="/net/http#Header">Header</a> }</pre> </div> <p>ServerResponse is embedded in each Do response and provides the HTTP status code and header sent by the server. </p> </div><div class="Documentation-type"> <h4 tabindex="-1" id="SizeReaderAt" data-kind="type" class="Documentation-typeHeader"> <span>type <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go#L32">SizeReaderAt</a> <a class="Documentation-idLink" href="#SizeReaderAt" aria-label="Go to SizeReaderAt">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>type SizeReaderAt interface { <a href="/io">io</a>.<a href="/io#ReaderAt">ReaderAt</a> <span id="SizeReaderAt.Size" data-kind="method"> Size() <a href="/builtin#int64">int64</a> </span>}</pre> </div> <p>A SizeReaderAt is a ReaderAt with a Size method. An io.SectionReader implements SizeReaderAt. </p> </div><div class="Documentation-type"> <h4 tabindex="-1" id="Uint32s" data-kind="type" class="Documentation-typeHeader"> <span>type <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go#L71">Uint32s</a> <a class="Documentation-idLink" href="#Uint32s" aria-label="Go to Uint32s">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>type Uint32s []<a href="/builtin#uint32">uint32</a></pre> </div> <p>Uint32s is a slice of uint32s that marshal as quoted strings in JSON. </p> <div class="Documentation-typeMethod"> <h4 tabindex="-1" id="Uint32s.MarshalJSON" data-kind="method" class="Documentation-typeMethodHeader"> <span>func (Uint32s) <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go#L141">MarshalJSON</a> <a class="Documentation-idLink" href="#Uint32s.MarshalJSON" aria-label="Go to Uint32s.MarshalJSON">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func (q <a href="#Uint32s">Uint32s</a>) MarshalJSON() ([]<a href="/builtin#byte">byte</a>, <a href="/builtin#error">error</a>)</pre> </div> </div><div class="Documentation-typeMethod"> <h4 tabindex="-1" id="Uint32s.UnmarshalJSON" data-kind="method" class="Documentation-typeMethodHeader"> <span>func (*Uint32s) <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go#L73">UnmarshalJSON</a> <a class="Documentation-idLink" href="#Uint32s.UnmarshalJSON" aria-label="Go to Uint32s.UnmarshalJSON">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func (q *<a href="#Uint32s">Uint32s</a>) UnmarshalJSON(raw []<a href="/builtin#byte">byte</a>) <a href="/builtin#error">error</a></pre> </div> </div> </div><div class="Documentation-type"> <h4 tabindex="-1" id="Uint64s" data-kind="type" class="Documentation-typeHeader"> <span>type <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go#L52">Uint64s</a> <a class="Documentation-idLink" href="#Uint64s" aria-label="Go to Uint64s">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>type Uint64s []<a href="/builtin#uint64">uint64</a></pre> </div> <p>Uint64s is a slice of uint64s that marshal as quoted strings in JSON. </p> <div class="Documentation-typeMethod"> <h4 tabindex="-1" id="Uint64s.MarshalJSON" data-kind="method" class="Documentation-typeMethodHeader"> <span>func (Uint64s) <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go#L135">MarshalJSON</a> <a class="Documentation-idLink" href="#Uint64s.MarshalJSON" aria-label="Go to Uint64s.MarshalJSON">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func (q <a href="#Uint64s">Uint64s</a>) MarshalJSON() ([]<a href="/builtin#byte">byte</a>, <a href="/builtin#error">error</a>)</pre> </div> </div><div class="Documentation-typeMethod"> <h4 tabindex="-1" id="Uint64s.UnmarshalJSON" data-kind="method" class="Documentation-typeMethodHeader"> <span>func (*Uint64s) <a class="Documentation-source" href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go#L54">UnmarshalJSON</a> <a class="Documentation-idLink" href="#Uint64s.UnmarshalJSON" aria-label="Go to Uint64s.UnmarshalJSON">露</a></span> <span class="Documentation-sinceVersion"> </span> </h4> <div class="Documentation-declaration"> <pre>func (q *<a href="#Uint64s">Uint64s</a>) UnmarshalJSON(raw []<a href="/builtin#byte">byte</a>) <a href="/builtin#error">error</a></pre> </div> </div> </div></section></div> </div> </div> <div class="UnitFiles js-unitFiles"> <h2 class="UnitFiles-title" id="section-sourcefiles"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/insert_drive_file_gm_grey_24dp.svg" alt=""> Source Files <a class="UnitFiles-idLink" href="#section-sourcefiles" aria-label="Go to Source Files">露</a> </h2> <div class="UnitFiles-titleLink"> <a href="https://github.com/googleapis/google-api-go-client/tree/v0.209.0/googleapi" target="_blank" rel="noopener">View all Source files</a> </div> <div> <ul class="UnitFiles-fileList"><li> <a href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/googleapi.go" target="_blank" rel="noopener" title="googleapi.go">googleapi.go</a> </li><li> <a href="https://github.com/googleapis/google-api-go-client/blob/v0.209.0/googleapi/types.go" target="_blank" rel="noopener" title="types.go">types.go</a> </li></ul> </div> </div> <div class="UnitDirectories js-unitDirectories"> <h2 class="UnitDirectories-title" id="section-directories"> <img class="go-Icon" height="24" width="24" src="/static/shared/icon/folder_gm_grey_24dp.svg" alt=""> Directories <a class="UnitDirectories-idLink" href="#section-directories" aria-label="Go to Directories">露</a> </h2> <div class="UnitDirectories-toggles"> <div class="UnitDirectories-toggleButtons"> <button class="js-showInternalDirectories" data-test-id="internal-directories-toggle" data-gtmc="directories button" aria-label="Show Internal Directories"> Show internal </button> <button class="js-expandAllDirectories" data-test-id="directories-toggle" data-gtmc="directories button" aria-label="Expand All Directories"> Expand all </button> </div> </div> <table class="UnitDirectories-table UnitDirectories-table--tree js-expandableTable" data-test-id="UnitDirectories-table"> <tr class="UnitDirectories-tableHeader UnitDirectories-tableHeader--tree"> <th>Path</th> <th class="UnitDirectories-desktopSynopsis">Synopsis</th> </tr> <tr class=""> <td data-id="transport" data-aria-owns=""> <div class="UnitDirectories-pathCell"> <div><a href="/google.golang.org/api@v0.209.0/googleapi/transport">transport</a> </div> <div class="UnitDirectories-mobileSynopsis">Package transport contains HTTP transports used to make authenticated API requests.</div> </div> </td> <td class="UnitDirectories-desktopSynopsis">Package transport contains HTTP transports used to make authenticated API requests.</td></tr></tr> </table> </div> </div> </div> <div id="showInternal-description" hidden> Click to show internal directories. </div> <div id="hideInternal-description" hidden> Click to hide internal directories. </div> </article> <footer class="go-Main-footer"></footer> </main> <footer class="go-Footer"> <div class="go-Footer-links"> <div class="go-Footer-linkColumn"> <a href="https://go.dev/solutions" class="go-Footer-link go-Footer-link--primary" data-gtmc="footer link"> Why Go </a> <a href="https://go.dev/solutions#use-cases" class="go-Footer-link" data-gtmc="footer link"> Use Cases </a> <a href="https://go.dev/solutions#case-studies" class="go-Footer-link" data-gtmc="footer link"> Case Studies </a> </div> <div class="go-Footer-linkColumn"> <a href="https://learn.go.dev/" class="go-Footer-link go-Footer-link--primary" data-gtmc="footer link"> Get Started </a> <a href="https://play.golang.org" class="go-Footer-link" data-gtmc="footer link"> Playground </a> <a href="https://tour.golang.org" class="go-Footer-link" data-gtmc="footer link"> Tour </a> <a href="https://stackoverflow.com/questions/tagged/go?tab=Newest" class="go-Footer-link" data-gtmc="footer link"> Stack Overflow </a> <a href="https://go.dev/help" class="go-Footer-link" data-gtmc="footer link"> Help </a> </div> <div class="go-Footer-linkColumn"> <a href="https://pkg.go.dev" class="go-Footer-link go-Footer-link--primary" data-gtmc="footer link"> Packages </a> <a href="/std" class="go-Footer-link" data-gtmc="footer link"> Standard Library </a> <a href="/golang.org/x" class="go-Footer-link" data-gtmc="footer link"> Sub-repositories </a> <a href="https://pkg.go.dev/about" class="go-Footer-link" data-gtmc="footer link"> About Go Packages </a> </div> <div class="go-Footer-linkColumn"> <a href="https://go.dev/project" class="go-Footer-link go-Footer-link--primary" data-gtmc="footer link"> About </a> <a href="https://go.dev/dl/" class="go-Footer-link" data-gtmc="footer link">Download</a> <a href="https://go.dev/blog" class="go-Footer-link" data-gtmc="footer link">Blog</a> <a href="https://github.com/golang/go/issues" class="go-Footer-link" data-gtmc="footer link"> Issue Tracker </a> <a href="https://go.dev/doc/devel/release.html" class="go-Footer-link" data-gtmc="footer link"> Release Notes </a> <a href="https://blog.golang.org/go-brand" class="go-Footer-link" data-gtmc="footer link"> Brand Guidelines </a> <a href="https://go.dev/conduct" class="go-Footer-link" data-gtmc="footer link"> Code of Conduct </a> </div> <div class="go-Footer-linkColumn"> <a href="https://www.twitter.com/golang" class="go-Footer-link go-Footer-link--primary" data-gtmc="footer link"> Connect </a> <a href="https://www.twitter.com/golang" class="go-Footer-link" data-gtmc="footer link"> Twitter </a> <a href="https://github.com/golang" class="go-Footer-link" data-gtmc="footer link">GitHub</a> <a href="https://invite.slack.golangbridge.org/" class="go-Footer-link" data-gtmc="footer link"> Slack </a> <a href="https://reddit.com/r/golang" class="go-Footer-link" data-gtmc="footer link"> r/golang </a> <a href="https://www.meetup.com/pro/go" class="go-Footer-link" data-gtmc="footer link"> Meetup </a> <a href="https://golangweekly.com/" class="go-Footer-link" data-gtmc="footer link"> Golang Weekly </a> </div> </div> <div class="go-Footer-bottom"> <img class="go-Footer-gopher" width="1431" height="901" src="/static/shared/gopher/pilot-bust-1431x901.svg" alt="Gopher in flight goggles"> <ul class="go-Footer-listRow"> <li class="go-Footer-listItem"> <a href="https://go.dev/copyright" data-gtmc="footer link">Copyright</a> </li> <li class="go-Footer-listItem"> <a href="https://go.dev/tos" data-gtmc="footer link">Terms of Service</a> </li> <li class="go-Footer-listItem"> <a href="http://www.google.com/intl/en/policies/privacy/" data-gtmc="footer link" target="_blank" rel="noopener"> Privacy Policy </a> </li> <li class="go-Footer-listItem"> <a href="https://go.dev/s/pkgsite-feedback" target="_blank" rel="noopener" data-gtmc="footer link"> Report an Issue </a> </li> <li class="go-Footer-listItem"> <button class="go-Button go-Button--text go-Footer-toggleTheme js-toggleTheme" aria-label="Theme Toggle"> <img data-value="auto" class="go-Icon go-Icon--inverted" height="24" width="24" src="/static/shared/icon/brightness_6_gm_grey_24dp.svg" alt="System theme"> <img data-value="dark" class="go-Icon go-Icon--inverted" height="24" width="24" src="/static/shared/icon/brightness_2_gm_grey_24dp.svg" alt="Dark theme"> <img data-value="light" class="go-Icon go-Icon--inverted" height="24" width="24" src="/static/shared/icon/light_mode_gm_grey_24dp.svg" alt="Light theme"> <p> Theme Toggle </p> </button> </li> <li class="go-Footer-listItem"> <button class="go-Button go-Button--text go-Footer-keyboard js-openShortcuts" aria-label="Shorcuts Modal"> <img class="go-Icon go-Icon--inverted" height="24" width="24" src="/static/shared/icon/keyboard_grey_24dp.svg" alt=""> <p> Shortcuts Modal </p> </button> </li> </ul> <a class="go-Footer-googleLogo" href="https://google.com" target="_blank"rel="noopener" data-gtmc="footer link"> <img class="go-Footer-googleLogoImg" height="24" width="72" src="/static/shared/logo/google-white.svg" alt="Google logo"> </a> </div> </footer> <dialog id="jump-to-modal" class="JumpDialog go-Modal go-Modal--md js-modal"> <form method="dialog" data-gmtc="jump to form" aria-label="Jump to Identifier"> <div class="Dialog-title go-Modal-header"> <h2>Jump to</h2> <button class="go-Button go-Button--inline" type="button" data-modal-close data-gtmc="modal button" aria-label="Close" > <img class="go-Icon" height="24" width="24" src="/static/shared/icon/close_gm_grey_24dp.svg" alt="" /> </button> </div> <div class="JumpDialog-filter"> <input class="JumpDialog-input go-Input" autocomplete="off" type="text"> </div> <div class="JumpDialog-body go-Modal-body"> <div class="JumpDialog-list"></div> </div> <div class="go-Modal-actions"> <button class="go-Button" data-test-id="close-dialog">Close</button> </div> </form> </dialog> <dialog class="ShortcutsDialog go-Modal go-Modal--sm js-modal"> <form method="dialog"> <div class="go-Modal-header"> <h2>Keyboard shortcuts</h2> <button class="go-Button go-Button--inline" type="button" data-modal-close data-gtmc="modal button" aria-label="Close" > <img class="go-Icon" height="24" width="24" src="/static/shared/icon/close_gm_grey_24dp.svg" alt="" /> </button> </div> <div class="go-Modal-body"> <table> <tbody> <tr><td class="ShortcutsDialog-key"> <strong>?</strong></td><td> : This menu</td> </tr> <tr><td class="ShortcutsDialog-key"> <strong>/</strong></td><td> : Search site</td> </tr> <tr><td class="ShortcutsDialog-key"> <strong>f</strong> or <strong>F</strong></td><td> : Jump to</td> </tr> <tr> <td class="ShortcutsDialog-key"><strong>y</strong> or <strong>Y</strong></td> <td> : Canonical URL</td> </tr> </tbody> </table> </div> <div class="go-Modal-actions"> <button class="go-Button" data-test-id="close-dialog">Close</button> </div> </form> </dialog> <section class="Cookie-notice js-cookieNotice"> <div>go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic. <a target=_blank href="https://policies.google.com/technologies/cookies">Learn more.</a></div> <div><button class="go-Button">Okay</button></div> </section> <script> // this will throw if the querySelector can鈥檛 find the element const gtmId = document.querySelector('.js-gtmID').dataset.gtmid; if (!gtmId) { throw new Error('Google Tag Manager ID not found'); } loadScript(`https://www.googletagmanager.com/gtm.js?id=${gtmId}`); </script> <noscript> <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-W8MVQXG" height="0" width="0" style="display:none;visibility:hidden"> </iframe> </noscript> <div class="js-canonicalURLPath" data-canonical-url-path="/google.golang.org/api@v0.209.0/googleapi" hidden></div> <div class="js-playgroundVars" data-modulepath="google.golang.org/api" data-version="v0.209.0" hidden></div> <script> loadScript('/static/frontend/unit/main/main.js') </script> <script> loadScript('/static/frontend/unit/unit.js') </script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10