code
stringlengths
10
1.34M
language
stringclasses
1 value
// Copyright 2012 Google, Inc. All rights reserved. // Copyright 2009-2011 Andreas Krennmair. All rights reserved. // // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file in the root of the source // tree. package layers import ( "code.google.com/p/gopacket" "encodi...
Go
// Copyright 2012 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 in the root of the source // tree. package layers import ( "code.google.com/p/gopacket" "encoding/binary" "fmt" ) // SCTP contains information on the top le...
Go
// Copyright 2012 Google, Inc. All rights reserved. // Copyright 2009-2011 Andreas Krennmair. All rights reserved. // // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file in the root of the source // tree. package layers import ( "code.google.com/p/gopacket" "encodi...
Go
// Copyright 2012 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 in the root of the source // tree. package layers import ( "code.google.com/p/gopacket" "encoding/binary" "errors" ) // MPLS is the MPLS packet header. type...
Go
// Copyright 2012 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 in the root of the source // tree. package layers import ( "code.google.com/p/gopacket" "encoding/binary" "fmt" ) type RUDP struct { BaseLayer SYN, ACK, E...
Go
// Copyright 2012 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 in the root of the source // tree. /* Package layers provides decoding layers for many common protocols. The layers package contains decode implementations for ...
Go
// Copyright 2012 Google, Inc. All rights reserved. // Copyright 2009-2011 Andreas Krennmair. All rights reserved. // // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file in the root of the source // tree. package layers import ( "code.google.com/p/gopacket" "encodi...
Go
// Copyright 2012 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 in the root of the source // tree. package layers import ( "code.google.com/p/gopacket" "encoding/binary" "fmt" ) type EAPCode uint8 type EAPType uint8 con...
Go
// Copyright 2012 Google, Inc. All rights reserved. // Copyright 2009-2011 Andreas Krennmair. All rights reserved. // // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file in the root of the source // tree. package layers import ( "code.google.com/p/gopacket" "encodi...
Go
// Copyright 2012 Google, Inc. All rights reserved. // Copyright 2009-2011 Andreas Krennmair. All rights reserved. // // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file in the root of the source // tree. package layers import ( "code.google.com/p/gopacket" "encodi...
Go
// Copyright 2012 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 in the root of the source // tree. package gopacket import () // SerializableLayer allows its implementations to be written out as a set of bytes, // so those ...
Go
// Copyright 2012 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 in the root of the source // tree. package gopacket import ( "fmt" ) // DecodingLayer is an interface for packet layers that can decode themselves. // // The ...
Go
// Copyright 2012 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 in the root of the source // tree. // +build ignore // This binary pulls the list of known MAC // prefixes from IEEE and writes them out to a go file which is c...
Go
// Copyright 2012 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 in the root of the source // tree. package macs // Created by gen.go, don't edit manually // Generated at 2014-04-26 21:11:20.707992175 -0600 MDT // Fetched fro...
Go
// Copyright 2012 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 in the root of the source // tree. // Package macs provides an in-memory mapping of all valid Ethernet MAC address // prefixes to their associated organization. ...
Go
// Copyright 2012 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 in the root of the source // tree. // Package tcpassembly provides TCP stream re-assembly. // // The tcpassembly package implements uni-directional TCP reassembl...
Go
// Copyright 2012 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 in the root of the source // tree. // Package tcpreader provides an implementation for tcpassembly.Stream which presents // the caller with an io.Reader for easy...
Go
// Copyright 2012 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 in the root of the source // tree. // Package pcapgo provides some native PCAP support, not requiring // C libpcap to be installed. package pcapgo import ( "co...
Go
// Copyright 2012 Google, Inc. All rights reserved. // Copyright 2009-2011 Andreas Krennmair. All rights reserved. // // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file in the root of the source // tree. package pcap /* #cgo linux LDFLAGS: -lpcap #cgo freebsd LDFLAG...
Go
// Copyright 2012 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 in the root of the source // tree. // This benchmark reads in file <tempdir>/gopacket_benchmark.pcap and measures // the time it takes to decode all packets from...
Go
// Copyright 2012 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 in the root of the source // tree. // +build ignore // This binary tests that PCAP packet capture is working correctly by issuing // HTTP requests, then making ...
Go
// Copyright 2012 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 in the root of the source // tree. /* Package pcap allows users of gopacket to read packets off the wire or from pcap files. This package is meant to be used wi...
Go
// Copyright 2012 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 in the root of the source // tree. package gopacket import ( "fmt" ) // Layer represents a single decoded packet layer (using either the // OSI or TCP/IP defi...
Go
// Copyright 2012 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 in the root of the source // tree. package gopacket import ( "errors" ) // DecodeFeedback is used by DecodingLayer layers to provide decoding metadata. type D...
Go
// Copyright 2012 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 in the root of the source // tree. // +build linux // Package afpacket provides Go bindings for MMap'd AF_PACKET socket reading. package afpacket // Couldn't h...
Go
// Copyright 2012 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 in the root of the source // tree. // +build linux package afpacket import ( "fmt" "time" ) // #include <linux/if_packet.h> // #include <sys/socket.h> impor...
Go
// Copyright 2012 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 in the root of the source // tree. // +build linux package afpacket import ( "reflect" "time" "unsafe" ) // #include <linux/if_packet.h> import "C" // Our...
Go
// Copyright 2012 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 in the root of the source // tree. // Package bytediff provides a simple diff utility for looking at differences in byte // slices. It's slow, clunky, and not p...
Go
// Copyright 2012 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 in the root of the source // tree. // +build !linux // Package routing is currently only supported in Linux, but the build system requires a valid go file for a...
Go
// Copyright 2012 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 in the root of the source // tree. package routing import ( "net" ) // Router implements simple IPv4/IPv6 routing based on the kernel's routing // table. Thi...
Go
// Copyright 2012 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 in the root of the source // tree. // +build linux // Package routing provides a very basic but mostly functional implementation of // a routing table for IPv4/...
Go
// Copyright 2012 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 in the root of the source // tree. package gopacket import ( "bytes" "fmt" "strconv" ) // MaxEndpointSize determines the maximum size in bytes of an endpoin...
Go
// Copyright 2012 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 in the root of the source // tree. // This binary provides sample code for using the gopacket TCP assembler and TCP // stream reader. It reads packets off the w...
Go
// Copyright 2012 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 in the root of the source // tree. // The pfdump binary implements a tcpdump-like command line tool with gopacket // using pfring as a backend data collection me...
Go
// Copyright 2012 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 in the root of the source // tree. // synscan implements a TCP syn scanner on top of pcap. // It's more complicated than arpscan, since it has to handle sending ...
Go
// Copyright 2012 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 in the root of the source // tree. // This binary provides sample code for using the gopacket TCP assembler raw, // without the help of the tcpreader library. I...
Go
// Copyright 2012 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 in the root of the source // tree. // arpscan implements ARP scanning of all interfaces' local networks using // gopacket and its subpackages. This example show...
Go
// Copyright 2012 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 in the root of the source // tree. // This binary shows how to display byte differences to users via the bytediff // library. package main import ( "code.googl...
Go
// Copyright 2012 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 in the root of the source // tree. // The pcapdump binary implements a tcpdump-like command line tool with gopacket // using pcap as a backend data collection me...
Go
// Copyright 2012 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 in the root of the source // tree. package gopacket // LayerClass is a set of LayerTypes, used for grabbing one of a number of // different types from a packet....
Go
// Copyright 2012 Google, Inc. All rights reserved. // Copyright 2009-2011 Andreas Krennmair. All rights reserved. // // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file in the root of the source // tree. package pfring /* #cgo LDFLAGS: -lpfring -lpcap #include <stdl...
Go
// Copyright 2012 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 in the root of the source // tree. /* Package pfring wraps the PF_RING C library for Go. PF_RING is a high-performance packet capture library written by ntop.or...
Go
// Copyright 2012 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 in the root of the source // tree. /* Package gopacket provides packet decoding for the Go language. gopacket contains many sub-packages with additional functio...
Go
// Copyright 2012 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 in the root of the source // tree. // Package dumpcommand implements a run function for pfdump and pcapdump // with many similar flags/features to tcpdump. This...
Go
// Copyright 2012 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 in the root of the source // tree. package gopacket import ( "bytes" "encoding/hex" "errors" "fmt" "io" "os" "reflect" "runtime/debug" "time" ) // Cap...
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 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
// 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" // ... // dfareportingService, err := dfareporting.New(oauthHttpClient) package df...
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.1" // ... // dfareportingService, err := dfareporting.New(oauthHttpClient) package ...
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 books provides access to the Books API. // // See https://developers.google.com/books/docs/v1/getting_started // // Usage example: // // import "code.google.com/p/google-api-go-client/books/v1" // ... // booksService, err := books.New(oauthHttpClient) package books import ( "bytes" "code.google.com/...
Go
// Package orkut provides access to the Orkut API. // // See http://code.google.com/apis/orkut/v2/reference.html // // Usage example: // // import "code.google.com/p/google-api-go-client/orkut/v2" // ... // orkutService, err := orkut.New(oauthHttpClient) package orkut import ( "bytes" "code.google.com/p/google...
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 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 civicinfo provides access to the Google Civic Information API. // // See https://developers.google.com/civic-information // // Usage example: // // import "code.google.com/p/google-api-go-client/civicinfo/us_v1" // ... // civicinfoService, err := civicinfo.New(oauthHttpClient) package civicinfo import...
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 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 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 prediction provides access to the Prediction API. // // See https://developers.google.com/prediction/docs/developer-guide // // Usage example: // // import "code.google.com/p/google-api-go-client/prediction/v1.2" // ... // predictionService, err := prediction.New(oauthHttpClient) package prediction im...
Go
// Package prediction provides access to the Prediction API. // // See https://developers.google.com/prediction/docs/developer-guide // // Usage example: // // import "code.google.com/p/google-api-go-client/prediction/v1.5" // ... // predictionService, err := prediction.New(oauthHttpClient) package prediction im...
Go
// Package prediction provides access to the Prediction API. // // See https://developers.google.com/prediction/docs/developer-guide // // Usage example: // // import "code.google.com/p/google-api-go-client/prediction/v1.3" // ... // predictionService, err := prediction.New(oauthHttpClient) package prediction im...
Go
// Package prediction provides access to the Prediction API. // // See https://developers.google.com/prediction/docs/developer-guide // // Usage example: // // import "code.google.com/p/google-api-go-client/prediction/v1.4" // ... // predictionService, err := prediction.New(oauthHttpClient) package prediction im...
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 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 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 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 pagespeedonline provides access to the Page Speed Online 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(oauthHt...
Go
// Package groupsmigration provides access to the Groups Migration API. // // See https://developers.google.com/google-apps/groups-migration/ // // Usage example: // // import "code.google.com/p/google-api-go-client/groupsmigration/v1" // ... // groupsmigrationService, err := groupsmigration.New(oauthHttpClient) ...
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 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/v1sandbox" // ... // freebaseService, err := freebase.New(oauthHttpClient) package freebase import ( "bytes" "code.google...
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 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
// 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 ( "encoding/gob" "errors" "flag" "fmt" "io/ioutil" "log" "net/http" "net/http/httptest" "net/url" "os" "os/exec" "path/filepath" "...
Go
package main import ( "log" "net/http" orkut "code.google.com/p/google-api-go-client/orkut/v2" ) func init() { registerDemo("orkut", orkut.OrkutScope, orkutMain) } func orkutMain(client *http.Client, argv []string) { orkutapi, _ := orkut.New(client) myBadges, err := orkutapi.Badges.List("me").Do() if err != ...
Go
package main import ( "fmt" "log" "net/http" "os" storage "code.google.com/p/google-api-go-client/storage/v1beta1" ) func init() { registerDemo("storage", storage.DevstorageRead_writeScope, storageMain) } func storageMain(client *http.Client, argv []string) { if len(argv) != 2 { fmt.Fprintln(os.Stderr, "Us...
Go
package main import ( "fmt" "log" "net/http" "os" drive "code.google.com/p/google-api-go-client/drive/v2" ) func init() { registerDemo("drive", drive.DriveScope, driveMain) } func driveMain(client *http.Client, argv []string) { if len(argv) != 1 { fmt.Fprintln(os.Stderr, "Usage: drive filename (to upload a...
Go
package main import ( "fmt" "log" "net/http" "os" "strings" urlshortener "code.google.com/p/google-api-go-client/urlshortener/v1" ) func init() { registerDemo("urlshortener", urlshortener.UrlshortenerScope, urlShortenerMain) } func urlShortenerMain(client *http.Client, argv []string) { if len(argv) != 1 { ...
Go
package main import ( "log" "net/http" tasks "code.google.com/p/google-api-go-client/tasks/v1" ) func init() { registerDemo("tasks", tasks.TasksScope, tasksMain) } func tasksMain(client *http.Client, argv []string) { taskapi, _ := tasks.New(client) task, err := taskapi.Tasks.Insert("@default", &tasks.Task{ ...
Go
package main import ( "bytes" "fmt" "io" "io/ioutil" "net/http" "os" ) type logTransport struct { rt http.RoundTripper } func (t *logTransport) RoundTrip(req *http.Request) (*http.Response, error) { var buf bytes.Buffer os.Stdout.Write([]byte("\n[request]\n")) if req.Body != nil { req.Body = ioutil.NopC...
Go
package main import ( "fmt" "log" "net/http" "os" compute "code.google.com/p/google-api-go-client/compute/v1beta12" ) func init() { registerDemo("compute", compute.ComputeScope, computeMain) } func computeMain(client *http.Client, argv []string) { if len(argv) != 2 { fmt.Fprintln(os.Stderr, "Usage: compute...
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 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 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 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 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 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
// 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 youtubeanalytics provides access to the YouTube Analytics API. // // See http://developers.google.com/youtube/analytics/ // // Usage example: // // import "code.google.com/p/google-api-go-client/youtubeanalytics/v1beta1" // ... // youtubeanalyticsService, err := youtubeanalytics.New(oauthHttpClient) pa...
Go
// Package youtubeanalytics provides access to the YouTube Analytics API. // // See http://developers.google.com/youtube/analytics/ // // Usage example: // // import "code.google.com/p/google-api-go-client/youtubeanalytics/v1" // ... // youtubeanalyticsService, err := youtubeanalytics.New(oauthHttpClient) package...
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
// Package customsearch provides access to the CustomSearch API. // // See https://developers.google.com/custom-search/v1/using_rest // // Usage example: // // import "code.google.com/p/google-api-go-client/customsearch/v1" // ... // customsearchService, err := customsearch.New(oauthHttpClient) package customsear...
Go
// Copyright 2012 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 transport contains HTTP transports used to make // authenticated API requests. package transport import ( "errors" "net/http" ) // APIKey is an HTTP ...
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 googleapi contains the common code shared by all Google API // libraries. package googleapi import ( "bytes" "encoding/json" "fmt" "io" "io/ioutil"...
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 bigquery provides access to the BigQuery API. // // See https://developers.google.com/bigquery/docs/overview // // Usage example: // // import "code.google.com/p/google-api-go-client/bigquery/v2" // ... // bigqueryService, err := bigquery.New(oauthHttpClient) package bigquery import ( "bytes" "code....
Go
// Package bigquery provides access to the BigQuery API. // // See https://code.google.com/apis/bigquery/docs/v2/ // // Usage example: // // import "code.google.com/p/google-api-go-client/bigquery/v2beta1" // ... // bigqueryService, err := bigquery.New(oauthHttpClient) package bigquery import ( "bytes" "fmt" ...
Go