code
stringlengths
10
1.34M
language
stringclasses
1 value
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build !darwin,!freebsd,!linux,!windows package ipv4 import "net" func getsockoptIPMreqn(fd, name int) (*net.Interface, error) { return nil, errOpNoSuppo...
Go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build ignore // +godefs map struct_in_addr [4]byte /* in_addr */ package ipv4 /* #include <netinet/in.h> */ import "C" const ( sysIP_OPTIONS = C....
Go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ipv4 func (f *sysICMPFilter) accept(typ ICMPType) { f.Data &^= 1 << (uint32(typ) & 31) } func (f *sysICMPFilter) block(typ ICMPType) { f.Data |= 1 <...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ipv4 import ( "net" "os" "syscall" "unsafe" "golang.org/x/net/internal/iana" ) func setsockoptIPMreq(fd syscall.Handle, name int, ifi *net.Inte...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ipv4 import "syscall" func setControlMessage(fd syscall.Handle, opt *rawOpt, cf ControlFlags, on bool) error { // TODO(mikio): implement this retur...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package ipv4 implements IP-level socket options for the Internet // Protocol version 4. // // The package provides IP-level socket options that allow // man...
Go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build darwin freebsd linux package ipv4 import ( "net" "os" "unsafe" "golang.org/x/net/internal/iana" ) func getsockoptIPMreqn(fd, name int) (*net.I...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build darwin dragonfly freebsd linux netbsd openbsd windows package ipv4 import "syscall" // TOS returns the type-of-service field value for outgoing pa...
Go
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ipv4 import "golang.org/x/net/internal/iana" // An ICMPType represents a type of ICMP message. type ICMPType int func (typ ICMPType) String() string...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ipv4 import ( "net" "os" "syscall" "unsafe" "golang.org/x/net/internal/iana" ) func getInt(fd syscall.Handle, opt *sockOpt) (int, error) { if ...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package proxy import ( "errors" "io" "net" "strconv" ) // SOCKS5 returns a Dialer that makes SOCKSv5 connections to the given address // with an optional ...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package proxy provides support for a variety of protocols to proxy network // data. package proxy import ( "errors" "net" "net/url" "os" ) // A Dialer ...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package proxy import ( "net" ) type direct struct{} // Direct is a direct proxy: one that makes network connections directly. var Direct = direct{} func (d...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package proxy import ( "net" "strings" ) // A PerHost directs connections to a default Dialer unless the hostname // requested matches one of a number of ex...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build ignore package main // This program generates table.go and table_test.go. // Invoke as: // // go run gen.go -version "xxx" >table.go // go run...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package publicsuffix provides a public suffix list based on data from // http://publicsuffix.org/. A public suffix is one under which Internet users // can d...
Go
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package netutil provides network utility functions, complementing the more // common ones in the net package. package netutil import ( "net" "sync" ) //...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package html import ( "golang.org/x/net/html/atom" ) // A NodeType is the type of a Node. type NodeType uint32 const ( ErrorNode NodeType = iota TextNode ...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package html import ( "strings" ) func adjustAttributeNames(aa []Attribute, nameMap map[string]string) { for i := range aa { if newName, ok := nameMap[aa[...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package html import ( "bufio" "errors" "fmt" "io" "strings" ) type writer interface { io.Writer WriteByte(c byte) error // in Go 1.1, use io.ByteWriter...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package html // Section 12.2.3.2 of the HTML5 specification says "The following elements // have varying levels of special parsing rules". // http://www.whatwg...
Go
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package charset provides common text encodings for HTML documents. // // The mapping from encoding labels to encodings is defined at // http://encoding.spec....
Go
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build ignore package main // Download http://encoding.spec.whatwg.org/encodings.json and use it to // generate table.go. import ( "encoding/json" "fmt"...
Go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package html import ( "bytes" "errors" "io" "strconv" "strings" "golang.org/x/net/html/atom" ) // A TokenType is the type of a Token. type TokenType ui...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package html import ( "strings" ) // parseDoctype parses the data from a DoctypeToken into a name, // public identifier, and system identifier. It returns a ...
Go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package html import ( "bytes" "strings" "unicode/utf8" ) // These replacements permit compatibility with old numeric entities that // assumed Windows-1252 ...
Go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package html import ( "errors" "fmt" "io" "strings" a "golang.org/x/net/html/atom" ) // A parser implements the HTML5 parsing algorithm: // http://www.w...
Go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package html // All entities that do not end with ';' are 6 or fewer bytes long. const longestEntityWithoutSemicolon = 6 // entity is a map from HTML entity n...
Go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. /* Package html implements an HTML5-compliant tokenizer and parser. Tokenization is done by creating a Tokenizer for an io.Reader r. It is the caller's respons...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package atom provides integer codes (also known as atoms) for a fixed set of // frequently occurring HTML strings: tag names and attribute keys such as "p" /...
Go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // +build ignore package main // This program generates table.go and table_test.go. // Invoke as // // go run gen.go |gofmt >table.go // go run gen.go -test |...
Go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package webdav import ( "errors" "io" "time" ) var ( ErrConfirmationFailed = errors.New("webdav: confirmation failed") ErrForbidden = errors.New...
Go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package webdav etc etc TODO. package webdav // TODO: ETag, properties. import ( "errors" "io" "net/http" "os" "time" ) // TODO: define the PropSystem...
Go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package webdav // The XML encoding is covered by Section 14. // http://www.webdav.org/specs/rfc4918.html#xml.element.definitions import ( "bytes" "encoding/...
Go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package webdav import ( "io" "net/http" "os" "path" "path/filepath" "strings" ) // A FileSystem implements access to a collection of named files. The el...
Go
// Copyright 2014 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package webdav // The If header is covered by Section 10.4. // http://www.webdav.org/specs/rfc4918.html#HEADER_If import ( "strings" ) // ifHeader is a disj...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package wc import "fmt" // Test runs a test suite against f. func Test(f func(string) map[string]int) { ok := true for _, c := range testCases { got := f...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package goplay import ( "fmt" "io" "net/http" "appengine" "appengine/urlfetch" ) const runUrl = "http://golang.org/compile?output=json" func init() { ...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package tree import ( "fmt" "math/rand" ) // A Tree is a binary tree with integer values. type Tree struct { Left *Tree Value int Right *Tree } // New...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package pic import ( "bytes" "encoding/base64" "fmt" "image" "image/png" ) func Show(f func(int, int) [][]uint8) { const ( dx = 256 dy = 256 ) da...
Go
// Copyright 2011 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "bytes" "flag" "fmt" "go/build" "io/ioutil" "log" "net/http" "os" "os/exec" "path/filepath" "regexp" "runtime" "strconv" "...
Go
// Copyright 2010 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "encoding/json" "log" "net/http" ) func init() { http.HandleFunc("/compile", Compile) } type Response struct { Output string `jso...
Go
// Package adexchangeseller provides access to the Ad Exchange Seller API. // // See https://developers.google.com/ad-exchange/seller-rest/ // // Usage example: // // import "code.google.com/p/google-api-go-client/adexchangeseller/v1" // ... // adexchangesellerService, err := adexchangeseller.New(oauthHttpClient)...
Go
// Package gan provides access to the Google Affiliate Network API. // // See https://developers.google.com/affiliate-network/ // // Usage example: // // import "code.google.com/p/google-api-go-client/gan/v1beta1" // ... // ganService, err := gan.New(oauthHttpClient) package gan import ( "bytes" "code.google.c...
Go
// Package datastore provides access to the Google Cloud Datastore API. // // See https://developers.google.com/datastore/ // // Usage example: // // import "code.google.com/p/google-api-go-client/datastore/v1beta1" // ... // datastoreService, err := datastore.New(oauthHttpClient) package datastore import ( "by...
Go
// Package adsense provides access to the AdSense Management API. // // See https://developers.google.com/adsense/management/ // // Usage example: // // import "code.google.com/p/google-api-go-client/adsense/v1.3" // ... // adsenseService, err := adsense.New(oauthHttpClient) package adsense import ( "bytes" "c...
Go
// Package adsense provides access to the AdSense Management API. // // See https://developers.google.com/adsense/management/ // // Usage example: // // import "code.google.com/p/google-api-go-client/adsense/v1.2" // ... // adsenseService, err := adsense.New(oauthHttpClient) package adsense import ( "bytes" "c...
Go
// Package adsense provides access to the AdSense Management API. // // See https://developers.google.com/adsense/management/ // // Usage example: // // import "code.google.com/p/google-api-go-client/adsense/v1.1" // ... // adsenseService, err := adsense.New(oauthHttpClient) package adsense import ( "bytes" "c...
Go
// Package adsense provides access to the AdSense Management API. // // See https://developers.google.com/adsense/management/ // // Usage example: // // import "code.google.com/p/google-api-go-client/adsense/v1" // ... // adsenseService, err := adsense.New(oauthHttpClient) package adsense import ( "bytes" "cod...
Go
// Package moderator provides access to the Moderator API. // // See http://code.google.com/apis/moderator/v1/using_rest.html // // Usage example: // // import "code.google.com/p/google-api-go-client/moderator/v1" // ... // moderatorService, err := moderator.New(oauthHttpClient) package moderator import ( "byte...
Go
// Package sqladmin provides access to the Cloud SQL Administration API. // // See https://developers.google.com/cloud-sql/docs/admin-api/ // // Usage example: // // import "code.google.com/p/google-api-go-client/sqladmin/v1beta1" // ... // sqladminService, err := sqladmin.New(oauthHttpClient) package sqladmin i...
Go
// Package games provides access to the Google Play Game Services API. // // See https://developers.google.com/games/services/ // // Usage example: // // import "code.google.com/p/google-api-go-client/games/v1" // ... // gamesService, err := games.New(oauthHttpClient) package games import ( "bytes" "code.googl...
Go
// Package storage provides access to the Cloud Storage API. // // See https://developers.google.com/storage/docs/json_api/ // // Usage example: // // import "code.google.com/p/google-api-go-client/storage/v1beta1" // ... // storageService, err := storage.New(oauthHttpClient) package storage import ( "bytes" "...
Go
// Package storage provides access to the Cloud Storage API. // // See https://developers.google.com/storage/docs/json_api/ // // Usage example: // // import "code.google.com/p/google-api-go-client/storage/v1beta2" // ... // storageService, err := storage.New(oauthHttpClient) package storage import ( "bytes" "...
Go
// Package shopping provides access to the Search API For Shopping. // // See https://developers.google.com/shopping-search/v1/getting_started // // Usage example: // // import "code.google.com/p/google-api-go-client/shopping/v1" // ... // shoppingService, err := shopping.New(oauthHttpClient) package shopping im...
Go
// Package adexchangebuyer provides access to the Ad Exchange Buyer API. // // See https://developers.google.com/ad-exchange/buyer-rest // // Usage example: // // import "code.google.com/p/google-api-go-client/adexchangebuyer/v1.3" // ... // adexchangebuyerService, err := adexchangebuyer.New(oauthHttpClient) pack...
Go
// Package adexchangebuyer provides access to the Ad Exchange Buyer API. // // See https://developers.google.com/ad-exchange/buyer-rest // // Usage example: // // import "code.google.com/p/google-api-go-client/adexchangebuyer/v1.2" // ... // adexchangebuyerService, err := adexchangebuyer.New(oauthHttpClient) pack...
Go
// Package adexchangebuyer provides access to the Ad Exchange Buyer API. // // See https://developers.google.com/ad-exchange/buyer-rest // // Usage example: // // import "code.google.com/p/google-api-go-client/adexchangebuyer/v1.1" // ... // adexchangebuyerService, err := adexchangebuyer.New(oauthHttpClient) pack...
Go
// Package adexchangebuyer provides access to the Ad Exchange Buyer API. // // See https://developers.google.com/ad-exchange/buyer-rest // // Usage example: // // import "code.google.com/p/google-api-go-client/adexchangebuyer/v1" // ... // adexchangebuyerService, err := adexchangebuyer.New(oauthHttpClient) packag...
Go
// Package siteverification provides access to the Google Site Verification API. // // See https://developers.google.com/site-verification/ // // Usage example: // // import "code.google.com/p/google-api-go-client/siteverification/v1" // ... // siteverificationService, err := siteverification.New(oauthHttpClient)...
Go
// Package compute provides access to the Compute Engine API. // // See https://developers.google.com/compute/docs/reference/v1beta13 // // Usage example: // // import "code.google.com/p/google-api-go-client/compute/v1beta13" // ... // computeService, err := compute.New(oauthHttpClient) package compute import ( ...
Go
// Package compute provides access to the Compute Engine API. // // See https://developers.google.com/compute/docs/reference/v1beta14 // // Usage example: // // import "code.google.com/p/google-api-go-client/compute/v1beta14" // ... // computeService, err := compute.New(oauthHttpClient) package compute import ( ...
Go
// Package compute provides access to the Compute Engine API. // // See https://developers.google.com/compute/docs/reference/v1beta15 // // Usage example: // // import "code.google.com/p/google-api-go-client/compute/v1beta15" // ... // computeService, err := compute.New(oauthHttpClient) package compute import ( ...
Go
// Package compute provides access to the Compute Engine API. // // See https://developers.google.com/compute/docs/reference/v1beta12 // // Usage example: // // import "code.google.com/p/google-api-go-client/compute/v1beta12" // ... // computeService, err := compute.New(oauthHttpClient) package compute import ( ...
Go
// Package youtube provides access to the YouTube Data API. // // See https://developers.google.com/youtube/v3 // // Usage example: // // import "code.google.com/p/google-api-go-client/youtube/v3" // ... // youtubeService, err := youtube.New(oauthHttpClient) package youtube import ( "bytes" "code.google.com/p/...
Go
// Package youtube provides access to the YouTube API. // // See https://developers.google.com/youtube // // Usage example: // // import "code.google.com/p/google-api-go-client/youtube/v3alpha" // ... // youtubeService, err := youtube.New(oauthHttpClient) package youtube import ( "bytes" "code.google.com/p/goo...
Go
// Package discovery provides access to the APIs Discovery Service. // // See https://developers.google.com/discovery/ // // Usage example: // // import "code.google.com/p/google-api-go-client/discovery/v1" // ... // discoveryService, err := discovery.New(oauthHttpClient) package discovery import ( "bytes" "co...
Go
// Package analytics provides access to the Google Analytics API. // // See https://developers.google.com/analytics/ // // Usage example: // // import "code.google.com/p/google-api-go-client/analytics/v3" // ... // analyticsService, err := analytics.New(oauthHttpClient) package analytics import ( "bytes" "code...
Go
// Package analytics provides access to the Google Analytics API. // // See https://developers.google.com/analytics/ // // Usage example: // // import "code.google.com/p/google-api-go-client/analytics/v2.4" // ... // analyticsService, err := analytics.New(oauthHttpClient) package analytics import ( "bytes" "co...
Go
// Package translate provides access to the Translate API. // // See https://developers.google.com/translate/v2/using_rest // // Usage example: // // import "code.google.com/p/google-api-go-client/translate/v2" // ... // translateService, err := translate.New(oauthHttpClient) package translate import ( "bytes" ...
Go
// Package oauth2 provides access to the Google OAuth2 API. // // See https://developers.google.com/accounts/docs/OAuth2 // // Usage example: // // import "code.google.com/p/google-api-go-client/oauth2/v1" // ... // oauth2Service, err := oauth2.New(oauthHttpClient) package oauth2 import ( "bytes" "code.google....
Go
// Package oauth2 provides access to the Google OAuth2 API. // // See https://developers.google.com/accounts/docs/OAuth2 // // Usage example: // // import "code.google.com/p/google-api-go-client/oauth2/v2" // ... // oauth2Service, err := oauth2.New(oauthHttpClient) package oauth2 import ( "bytes" "code.google....
Go
// Package reseller provides access to the Enterprise Apps Reseller API. // // See https://developers.google.com/google-apps/reseller/ // // Usage example: // // import "code.google.com/p/google-api-go-client/reseller/v1" // ... // resellerService, err := reseller.New(oauthHttpClient) package reseller import ( ...
Go
// Package reseller provides access to the Enterprise Apps Reseller API. // // See https://developers.google.com/google-apps/reseller/ // // Usage example: // // import "code.google.com/p/google-api-go-client/reseller/v1sandbox" // ... // resellerService, err := reseller.New(oauthHttpClient) package reseller imp...
Go
// Package calendar provides access to the Calendar API. // // See https://developers.google.com/google-apps/calendar/firstapp // // Usage example: // // import "code.google.com/p/google-api-go-client/calendar/v3" // ... // calendarService, err := calendar.New(oauthHttpClient) package calendar import ( "bytes" ...
Go
// Package latitude provides access to the Google Latitude API. // // See https://developers.google.com/latitude/v1/using // // Usage example: // // import "code.google.com/p/google-api-go-client/latitude/v1" // ... // latitudeService, err := latitude.New(oauthHttpClient) package latitude import ( "bytes" "cod...
Go
// Package freebase provides access to the Freebase API. // // See http://wiki.freebase.com/wiki/API // // Usage example: // // import "code.google.com/p/google-api-go-client/freebase/v1-sandbox" // ... // freebaseService, err := freebase.New(oauthHttpClient) package freebase import ( "bytes" "fmt" "net/http"...
Go
// Package freebase provides access to the Freebase API. // // See https://developers.google.com/freebase/ // // Usage example: // // import "code.google.com/p/google-api-go-client/freebase/v1" // ... // freebaseService, err := freebase.New(oauthHttpClient) package freebase import ( "bytes" "code.google.com/p/...
Go
// Package freebase provides access to the Freebase API. // // See https://developers.google.com/freebase/ // // Usage example: // // import "code.google.com/p/google-api-go-client/freebase/v1sandbox" // ... // freebaseService, err := freebase.New(oauthHttpClient) package freebase import ( "bytes" "code.google...
Go
// Package audit provides access to the Enterprise Audit API. // // See https://developers.google.com/google-apps/admin-audit/get_started // // Usage example: // // import "code.google.com/p/google-api-go-client/audit/v1" // ... // auditService, err := audit.New(oauthHttpClient) package audit import ( "bytes" ...
Go
// Package plus provides access to the Google+ API. // // See https://developers.google.com/+/history/ // // Usage example: // // import "code.google.com/p/google-api-go-client/plus/v1moments" // ... // plusService, err := plus.New(oauthHttpClient) package plus import ( "bytes" "code.google.com/p/google-api-go...
Go
// Package gamesmanagement provides access to the Google Play Game Services Management API. // // See https://developers.google.com/games/services // // Usage example: // // import "code.google.com/p/google-api-go-client/gamesmanagement/v1management" // ... // gamesmanagementService, err := gamesmanagement.New(oa...
Go
// Package tasks provides access to the Tasks API. // // See https://developers.google.com/google-apps/tasks/firstapp // // Usage example: // // import "code.google.com/p/google-api-go-client/tasks/v1" // ... // tasksService, err := tasks.New(oauthHttpClient) package tasks import ( "bytes" "code.google.com/p/g...
Go
// Copyright 2011 Google Inc. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "bytes" "encoding/json" "errors" "flag" "fmt" "go/parser" "go/printer" "go/token" "io/ioutil" "log" "net/http" "net/url" "os" "...
Go
// Package taskqueue provides access to the TaskQueue API. // // See https://developers.google.com/appengine/docs/python/taskqueue/rest // // Usage example: // // import "code.google.com/p/google-api-go-client/taskqueue/v1beta1" // ... // taskqueueService, err := taskqueue.New(oauthHttpClient) package taskqueue ...
Go
// Package taskqueue provides access to the TaskQueue API. // // See https://developers.google.com/appengine/docs/python/taskqueue/rest // // Usage example: // // import "code.google.com/p/google-api-go-client/taskqueue/v1beta2" // ... // taskqueueService, err := taskqueue.New(oauthHttpClient) package taskqueue ...
Go
// Package appstate provides access to the Google App State API. // // See https://developers.google.com/games/services/web/api/states // // Usage example: // // import "code.google.com/p/google-api-go-client/appstate/v1" // ... // appstateService, err := appstate.New(oauthHttpClient) package appstate import ( ...
Go
// Package blogger provides access to the Blogger API. // // See https://developers.google.com/blogger/docs/3.0/getting_started // // Usage example: // // import "code.google.com/p/google-api-go-client/blogger/v3" // ... // bloggerService, err := blogger.New(oauthHttpClient) package blogger import ( "bytes" "c...
Go
// Package blogger provides access to the Blogger API. // // See https://developers.google.com/blogger/docs/2.0/json/getting_started // // Usage example: // // import "code.google.com/p/google-api-go-client/blogger/v2" // ... // bloggerService, err := blogger.New(oauthHttpClient) package blogger import ( "bytes...
Go
// Package coordinate provides access to the Google Maps Coordinate API. // // See https://developers.google.com/coordinate/ // // Usage example: // // import "code.google.com/p/google-api-go-client/coordinate/v1" // ... // coordinateService, err := coordinate.New(oauthHttpClient) package coordinate import ( "b...
Go
// Package admin provides access to the Admin Reports API. // // See https://developers.google.com/admin-sdk/reports/ // // Usage example: // // import "code.google.com/p/google-api-go-client/admin/reports_v1" // ... // adminService, err := admin.New(oauthHttpClient) package admin import ( "bytes" "code.google...
Go
// Package admin provides access to the Email Migration API v2. // // See https://developers.google.com/admin-sdk/email-migration/v2/ // // Usage example: // // import "code.google.com/p/google-api-go-client/admin/email_migration_v2" // ... // adminService, err := admin.New(oauthHttpClient) package admin import ...
Go
// Package admin provides access to the Admin Directory API. // // See https://developers.google.com/admin-sdk/directory/ // // Usage example: // // import "code.google.com/p/google-api-go-client/admin/directory_v1" // ... // adminService, err := admin.New(oauthHttpClient) package admin import ( "bytes" "code....
Go
// Package groupssettings provides access to the Groups Settings API. // // See https://developers.google.com/google-apps/groups-settings/get_started // // Usage example: // // import "code.google.com/p/google-api-go-client/groupssettings/v1" // ... // groupssettingsService, err := groupssettings.New(oauthHttpCli...
Go
// Package identitytoolkit provides access to the Google Identity Toolkit API. // // See https://developers.google.com/identity-toolkit/v3/ // // Usage example: // // import "code.google.com/p/google-api-go-client/identitytoolkit/v3" // ... // identitytoolkitService, err := identitytoolkit.New(oauthHttpClient) pa...
Go
// Package urlshortener provides access to the URL Shortener API. // // See http://code.google.com/apis/urlshortener/v1/getting_started.html // // Usage example: // // import "code.google.com/p/google-api-go-client/urlshortener/v1" // ... // urlshortenerService, err := urlshortener.New(oauthHttpClient) package ur...
Go
// Package licensing provides access to the Enterprise License Manager API. // // See https://developers.google.com/google-apps/licensing/ // // Usage example: // // import "code.google.com/p/google-api-go-client/licensing/v1" // ... // licensingService, err := licensing.New(oauthHttpClient) package licensing im...
Go
// Package pagespeedonline provides access to the PageSpeed Insights API. // // See https://developers.google.com/speed/docs/insights/v1/getting_started // // Usage example: // // import "code.google.com/p/google-api-go-client/pagespeedonline/v1" // ... // pagespeedonlineService, err := pagespeedonline.New(oauthH...
Go
// Package dfareporting provides access to the DFA Reporting API. // // See https://developers.google.com/doubleclick-advertisers/reporting/ // // Usage example: // // import "code.google.com/p/google-api-go-client/dfareporting/v1.3" // ... // dfareportingService, err := dfareporting.New(oauthHttpClient) package ...
Go
// Package dfareporting provides access to the DFA Reporting API. // // See https://developers.google.com/doubleclick-advertisers/reporting/ // // Usage example: // // import "code.google.com/p/google-api-go-client/dfareporting/v1.2" // ... // dfareportingService, err := dfareporting.New(oauthHttpClient) package ...
Go