Usage
go run *go github.com/owulveryck/test/
| package main | |
| import ( | |
| "encoding/json" | |
| "flag" | |
| "fmt" | |
| "gopkg.in/src-d/go-git.v4" | |
| "io/ioutil" | |
| "net/http" | |
| "os" |
| // Adding a file directly to index (stage area), without using working tree. | |
| // | |
| // $ go build index-add.go && yes | mv index-add ~/code/workspace/bin | |
| // $ mkdir -p /tmp/sample && cd /tmp/sample | |
| // $ index-add | |
| package main | |
| import ( | |
| "bytes" | |
| "fmt" |
Usage
go run *go github.com/owulveryck/test/
| package hercules | |
| import ( | |
| "gopkg.in/src-d/go-git.v4" | |
| "gopkg.in/src-d/go-git.v4/plumbing/object" | |
| "gopkg.in/src-d/hercules.v4/internal/core" | |
| "gopkg.in/src-d/hercules.v4/internal/plumbing" | |
| "gopkg.in/src-d/hercules.v4/internal/plumbing/identity" | |
| "gopkg.in/src-d/hercules.v4/internal/plumbing/uast" | |
| "gopkg.in/src-d/hercules.v4/internal/yaml" |
| package commitgraph | |
| import ( | |
| "bytes" | |
| "errors" | |
| "io" | |
| "math" | |
| "time" | |
| "gopkg.in/src-d/go-git.v4/plumbing" |
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "time" | |
| "gopkg.in/src-d/go-git.v4" | |
| "gopkg.in/src-d/go-git.v4/plumbing" | |
| "gopkg.in/src-d/go-git.v4/plumbing/object" |
| #!/bin/sh | |
| # This command installs binaries at specified versions | |
| # into $GOBIN, $GOPATH/bin or $HOME/bin. | |
| # It assumes Go 1.11. | |
| if [ $# = 0 ]; then | |
| usage: vgoget cmdpackage[@version]... >&2 | |
| exit 2 | |
| fi | |
| d=`mktemp -d` | |
| cd "$d" |
| import ( | |
| "errors" | |
| "fmt" | |
| "io/ioutil" | |
| "os" | |
| "strings" | |
| "github.com/aws/aws-lambda-go/events" | |
| "github.com/aws/aws-lambda-go/lambda" | |
| "github.com/aws/aws-sdk-go/aws/session" |
| package main | |
| import ( | |
| "encoding/base64" | |
| "encoding/json" | |
| "fmt" | |
| "io/ioutil" | |
| "os" | |
| "time" |
| // https://gist.github.com/davidwalter0/60f41b53732656c5c546cc8b0a739d11 | |
| // x/vgo: thoughts on selection criteria for non-versioned go repo | |
| // Run git branch version selection for non-vgo versioned repository | |
| // as if in a wayback machine. | |
| // Use the dependency's commit ctime as the wayback ctime. | |
| // Commits prior to the wayback ctime in sub-dependencies are eligible. | |
| // Use the newest commit prior to the wayback ctime. |