code
stringlengths
10
1.34M
language
stringclasses
1 value
package main import ( "time" ) import l4g "code.google.com/p/log4go" func main() { log := l4g.NewLogger() log.AddFilter("stdout", l4g.DEBUG, l4g.NewConsoleLogWriter()) log.Info("The time is now: %s", time.Now().Format("15:04:05 MST 2006/01/02")) }
Go
package main import ( "time" ) import l4g "code.google.com/p/log4go" func main() { log := l4g.NewLogger() log.AddFilter("network", l4g.FINEST, l4g.NewSocketLogWriter("udp", "192.168.1.255:12124")) // Run `nc -u -l -p 12124` or similar before you run this to see the following message log.Info("The time is now: ...
Go
package main import ( "bufio" "fmt" "io" "os" "time" ) import l4g "code.google.com/p/log4go" const ( filename = "flw.log" ) func main() { // Get a new logger instance log := l4g.NewLogger() // Create a default logger that is logging messages of FINE or higher log.AddFilter("file", l4g.FINE, l4g.NewFileLo...
Go
package main import l4g "code.google.com/p/log4go" func main() { // Load the configuration (isn't this easy?) l4g.LoadConfiguration("example.xml") // And now we're ready! l4g.Finest("This will only go to those of you really cool UDP kids! If you change enabled=true.") l4g.Debug("Oh no! %d + %d = %d!", 2, 2, 2...
Go
// Copyright (C) 2010, Kyle Lemons <kyle@kylelemons.net>. All rights reserved. package log4go import ( "encoding/json" "fmt" "net" "os" ) // This log writer sends output to a socket type SocketLogWriter chan *LogRecord // This is the SocketLogWriter's output method func (w SocketLogWriter) LogWrite(rec *LogRec...
Go
// Copyright (c) Google Inc. All Rights Reserved. // Author: Andrew Gerrand (adg@google.com) package timer import ( "bytes" "fmt" "time" ) type Timer struct { start time.Time point []time.Duration label []string } func New() *Timer { return &Timer{start: time.Now()} } // Point adds a opint to the Timer, ass...
Go
// Copyright (c) Google Inc. All Rights Reserved. // Author: Chris Broadfoot (cbro@google.com) package overlaytiler import ( "errors" "fmt" "image" "io" "math" "net/http" "strconv" "strings" _ "image/gif" _ "image/jpeg" _ "image/png" "appengine" "appengine/blobstore" "appengine/datastore" "appengine/...
Go
// Copyright (c) Google Inc. All Rights Reserved. // Author: Chris Broadfoot (cbro@google.com) package overlaytiler import ( "fmt" "appengine" "appengine/datastore" ) const ( tilesPerZoom = 1000 // limit to prevent DoS sliceQueue = "slice" tileQueue = "tile" zipQueue = "zip" sendQueue = "send" sliceB...
Go
// Copyright (c) Google Inc. All Rights Reserved. // Author: Chris Broadfoot (cbro@google.com) // Author: Andrew Gerrand (adg@google.com) package overlaytiler import ( "encoding/json" "fmt" "html/template" "net/http" "net/url" "appengine" "appengine/blobstore" "appengine/channel" "appengine/datastore" "app...
Go
// Copyright (c) Google Inc. All Rights Reserved. // Author: Chris Broadfoot (cbro@google.com) // Author: Andrew Gerrand (adg@google.com) package overlaytiler import ( "archive/zip" "bytes" "encoding/json" "fmt" "html/template" "image" "image/png" "math" "net/http" "net/url" "time" "appengine" "appengin...
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 odbc import ( "code.google.com/p/odbc/api" "database/sql/driver" "errors" "sync" ) type Stmt struct { c *Conn query string os *ODBCStmt ...
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 odbc implements database/sql driver to access data via odbc interface. // package odbc import ( "code.google.com/p/odbc/api" "database/sql" ) var...
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 odbc import ( "code.google.com/p/odbc/api" "database/sql/driver" "unsafe" ) type Conn struct { h api.SQLHDBC tx *Tx } func (d *Driver) Open(dsn...
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 odbc import ( "unicode/utf16" "unicode/utf8" ) const ( replacementChar = '\uFFFD' // Unicode replacement character // 0xd800-0xdc00 encodes the h...
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 odbc import ( "code.google.com/p/odbc/api" "database/sql/driver" "io" ) type Rows struct { os *ODBCStmt } func (r *Rows) Columns() []string { na...
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 odbc import ( "code.google.com/p/odbc/api" "fmt" "strings" "unsafe" ) func IsError(ret api.SQLRETURN) bool { return !(ret == api.SQL_SUCCESS || r...
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 odbc import ( "code.google.com/p/odbc/api" "fmt" ) func ToHandleAndType(handle interface{}) (h api.SQLHANDLE, ht api.SQLSMALLINT) { switch v := han...
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 linux // +build cgo package api // #cgo darwin LDFLAGS: -lodbc -L/opt/local/lib // #cgo darwin CFLAGS: -I/opt/local/include // #cgo linux LDF...
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 api import ( "syscall" "unsafe" ) const ( SQL_OV_ODBC3 = uintptr(3) SQL_ATTR_ODBC_VERSION = 200 SQL_DRIVER_NOPROMPT = 0 SQL_HANDLE_ENV = 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 api type ( SQLLEN SQLINTEGER SQLULEN SQLUINTEGER )
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 api type ( SQLLEN int64 SQLULEN uint64 )
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 api import ( "unicode/utf16" ) type ( SQL_DATE_STRUCT struct { Year SQLSMALLINT Month SQLUSMALLINT Day SQLUSMALLINT } SQL_TIMESTAMP_STRU...
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 odbc import ( "code.google.com/p/odbc/api" "database/sql/driver" "fmt" "time" "unsafe" ) type Parameter struct { SQLType api.SQLSMALLINT De...
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 odbc import ( "errors" ) type Result struct { rowCount int64 } func (r *Result) LastInsertId() (int64, error) { // TODO(brainman): implement (*Res...
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 odbc import ( "code.google.com/p/odbc/api" "fmt" "sync" ) type Stats struct { EnvCount int ConnCount int StmtCount int mu sync.Mutex } ...
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 odbc import ( "code.google.com/p/odbc/api" "database/sql/driver" "errors" "fmt" "time" "unsafe" ) type BufferLen api.SQLLEN func (l *BufferLen)...
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 odbc import ( "code.google.com/p/odbc/api" "database/sql/driver" "errors" ) type Tx struct { c *Conn } func (c *Conn) setAutoCommitAttr(a uintptr...
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 odbc import ( "code.google.com/p/odbc/api" "database/sql/driver" "errors" "fmt" "sync" "time" "unsafe" ) // TODO(brainman): see if I could use ...
Go
// Copyright 2009 The Go9p 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 p import ( "fmt" ) // Creates a Fcall value from the on-the-wire representation. If // dotu is true, reads 9P2000.u messages. Returns the unpacked...
Go
// Copyright 2009 The Go9p 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 p // Create a Rversion message in the specified Fcall. func PackRversion(fc *Fcall, msize uint32, version string) error { size := 4 + 2 + len(versi...
Go
// Copyright 2009 The Go9p 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 p import "fmt" func permToString(perm uint32) string { ret := "" if perm&DMDIR != 0 { ret += "d" } if perm&DMAPPEND != 0 { ret += "a" } ...
Go
// +build httpstats package srv import ( "code.google.com/p/go9p/p" "fmt" "io" "net/http" "sync" ) var mux sync.RWMutex var stat map[string]http.Handler var once sync.Once func register(s string, h http.Handler) { mux.Lock() if stat == nil { stat = make(map[string]http.Handler) } if h == nil { delete(...
Go
// Copyright 2009 The Go9p 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 srv import ( "code.google.com/p/go9p/p" "fmt" "log" "net" ) func (srv *Srv) NewConn(c net.Conn) { conn := new(Conn) conn.Srv = srv conn.Msiz...
Go
// Copyright 2009 The Go9p Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // The srv package provides definitions and functions used to implement // a 9P2000 file server. package srv import ( "code.google.com/p/go9p/p" "net" "s...
Go
// Copyright 2009 The Go9p 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 srv import "fmt" import "code.google.com/p/go9p/p" // Respond to the request with Rerror message func (req *Req) RespondError(err interface{}) { s...
Go
// Copyright 2009 The Go9p 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 srv import ( "code.google.com/p/go9p/p" "log" "sync" "time" ) // The FStatOp interface provides a single operation (Stat) that will be // calle...
Go
// Copyright 2009 The Go9p 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 ( "code.google.com/p/go9p/p" "code.google.com/p/go9p/p/srv" "flag" "fmt" "log" "os" "time" ) type Time struct { srv.File } type...
Go
// Copyright 2009 The Go9p 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 ( "code.google.com/p/go9p/p" "code.google.com/p/go9p/p/srv" "flag" "fmt" "log" "os" ) type Ramfs struct { srv *srv.Fsrv use...
Go
// Copyright 2009 The Go9p Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // A synthetic filesystem emulating a persistent cloning interface // from Plan 9. Reading the /clone file creates new entries in the filesystem // each cont...
Go
// Copyright 2012 The go9p 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 ( "syscall" "time" ) func atime(stat *syscall.Stat_t) time.Time { return time.Unix(stat.Atimespec.Unix()) }
Go
// Copyright 2009 The go9p 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 ( "code.google.com/p/go9p/p" "code.google.com/p/go9p/p/srv" "flag" "fmt" "io" "log" "os" "os/user" "strconv" "strings" "sysca...
Go
// Copyright 2009 The go9p 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 httpstats package main import ( "code.google.com/p/go9p/p/srv" ) func extraFuncs() { srv.StartStatsServer() }
Go
// Copyright 2012 The go9p 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 ( "syscall" "time" ) func atime(stat *syscall.Stat_t) time.Time { return time.Unix(stat.Atim.Unix()) }
Go
// Copyright 2009 The go9p 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 !httpstats package main func extraFuncs() { // NOOP: Start ufs without any extra services. }
Go
// Copyright 2009 The Go9p Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Listen on SSL connection, can be used as an example with p/clnt/examples/tls.go // Sample certificate was copied from the Go source code package main imp...
Go
// Copyright 2009 The Go9p 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 srv import ( "code.google.com/p/go9p/p" ) func (srv *Srv) version(req *Req) { tc := req.Tc conn := req.Conn if tc.Msize < p.IOHDRSZ { req.Re...
Go
package p type Log struct { Data interface{} Owner interface{} Type int } type Logger struct { items []*Log idx int logchan chan *Log fltchan chan *flt rszchan chan int } type flt struct { owner interface{} itype int fltchan chan []*Log } func NewLogger(sz int) *Logger { if sz == 0 { retur...
Go
// +build httpstats package clnt import ( "code.google.com/p/go9p/p" "fmt" "io" "net/http" ) func (clnt *Clnt) ServeHTTP(c http.ResponseWriter, r *http.Request) { io.WriteString(c, fmt.Sprintf("<html><body><h1>Client %s</h1>", clnt.Id)) defer io.WriteString(c, "</body></html>") // fcalls if clnt.Debuglevel...
Go
// Copyright 2009 The Go9p 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 clnt import "code.google.com/p/go9p/p" // Removes the file associated with the Fid. Returns nil if the // operation is successful. func (clnt *Clnt...
Go
// Copyright 2009 The Go9p 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 clnt import ( "code.google.com/p/go9p/p" "strings" ) // Opens the file associated with the fid. Returns nil if // the operation is successful. fu...
Go
// Copyright 2009 The Go9p 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 clnt import "code.google.com/p/go9p/p" // Returns the metadata for the file associated with the Fid, or an Error. func (clnt *Clnt) Stat(fid *Fid) ...
Go
// Copyright 2009 The Go9p 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 clnt import "code.google.com/p/go9p/p" // Write up to len(data) bytes starting from offset. Returns the // number of bytes written, or an Error. fu...
Go
// Copyright 2009 The Go9p 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 clnt var m2id = [...]uint8{ 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0, 5, 0, 1, 0, 2, 0, 1, 0...
Go
// Copyright 2009 The Go9p 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 clnt import "code.google.com/p/go9p/p" // Clunks a fid. Returns nil if successful. func (clnt *Clnt) Clunk(fid *Fid) (err error) { err = nil if f...
Go
// Copyright 2009 The Go9p 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 clnt import "code.google.com/p/go9p/p" type Tag struct { clnt *Clnt tag uint16 reqchan chan *Req respchan chan *Req donechan chan bo...
Go
// Copyright 2009 The Go9p 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 clnt import ( "io" "code.google.com/p/go9p/p" ) // Reads count bytes starting from offset from the file associated with the fid. // Returns a sli...
Go
// Copyright 2009 The Go9p 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 clnt import ( "code.google.com/p/go9p/p" "net" ) // Creates an authentication fid for the specified user. Returns the fid, if // successful, or a...
Go
// Copyright 2009 The Go9p 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 clnt import ( "code.google.com/p/go9p/p" "strings" ) // Starting from the file associated with fid, walks all wnames in // sequence and associate...
Go
package main // An interactive client for 9P servers. import ( "bufio" "code.google.com/p/go9p/p" "code.google.com/p/go9p/p/clnt" "flag" "fmt" "io" "os" "path" "strings" ) var addr = flag.String("addr", "127.0.0.1:5640", "network address") var ouser = flag.String("user", "", "user to connect as") var cmdfil...
Go
// Connects to a server over TLS and lists the specified directory package main import ( "code.google.com/p/go9p/p" "code.google.com/p/go9p/p/clnt" "crypto/rand" "crypto/tls" "flag" "fmt" "log" "os" ) var debuglevel = flag.Int("d", 0, "debuglevel") var addr = flag.String("addr", "127.0.0.1:5640", "network add...
Go
package main import ( "code.google.com/p/go9p/p" "code.google.com/p/go9p/p/clnt" "flag" "io" "log" "os" ) var debuglevel = flag.Int("d", 0, "debuglevel") var addr = flag.String("addr", "127.0.0.1:5640", "network address") func main() { var n int var user p.User var err error var c *clnt.Clnt var file *cln...
Go
package main import ( "code.google.com/p/go9p/p" "code.google.com/p/go9p/p/clnt" "flag" "log" "os" "strings" ) var debuglevel = flag.Int("d", 0, "debuglevel") var addr = flag.String("addr", "127.0.0.1:5640", "network address") func main() { var user p.User var ba [][]byte var nreqs int var rchan chan *clnt...
Go
package main import ( "code.google.com/p/go9p/p" "code.google.com/p/go9p/p/clnt" "flag" "io" "log" "os" ) var debuglevel = flag.Int("d", 0, "debuglevel") var addr = flag.String("addr", "127.0.0.1:5640", "network address") func main() { var user p.User var err error var c *clnt.Clnt var file *clnt.File var...
Go
package main import ( "code.google.com/p/go9p/p" "code.google.com/p/go9p/p/clnt" "flag" "io" "log" "os" ) var debuglevel = flag.Int("d", 0, "debuglevel") var addr = flag.String("addr", "127.0.0.1:5640", "network address") func main() { var n, m int var user p.User var err error var c *clnt.Clnt var file *...
Go
// Copyright 2009 The Go9p Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // The clnt package provides definitions and functions used to implement // a 9P2000 file client. package clnt import ( "code.google.com/p/go9p/p" "fmt" ...
Go
// Copyright 2009 The Go9p Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // The p9 package provides the definitions and functions used to implement // the 9P2000 protocol. package p import ( "fmt" ) // 9P2000 message types cons...
Go
// Copyright 2009 The Go9p 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 p // Create a Tversion message in the specified Fcall. func PackTversion(fc *Fcall, msize uint32, version string) error { size := 4 + 2 + len(versi...
Go
// Copyright 2009 The Go9p 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 p import "sync" var once sync.Once type osUser struct { uid int } type osUsers struct { users map[int]*osUser groups map[int]*osGroup sync.M...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go
/* Copyright 2011-2012 gtalent2@gmail.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
Go