Usage
go run *go github.com/owulveryck/test/
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"os" | |
"os/user" | |
"path/filepath" | |
"strings" |
package main | |
import ( | |
"fmt" | |
git "gopkg.in/src-d/go-git.v4" | |
"gopkg.in/src-d/go-git.v4/utils/ioutil" | |
) | |
func main() { |
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 ( | |
"fmt" | |
"io/ioutil" | |
"os" | |
"gopkg.in/src-d/go-billy.v3" | |
"gopkg.in/src-d/go-billy.v3/memfs" | |
"gopkg.in/src-d/go-git.v4" |
// 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. |
package main | |
import ( | |
"errors" | |
"flag" | |
"fmt" | |
"gopkg.in/src-d/go-git.v4" | |
"gopkg.in/src-d/go-git.v4/plumbing" | |
"gopkg.in/src-d/go-git.v4/plumbing/object" | |
"gopkg.in/src-d/go-git.v4/utils/merkletrie" |
package main | |
// https://www.meetup.com/Golang-Phoenix/events/249838312/ | |
// I was assigned the 'gopkg.in/src-d/go-git.v4' package. Below is a simple program that will take a Git URL, | |
// clone the repo, and scan SemVer-compliant tags then output the most recent, as per SemVer, version. | |
import ( | |
"fmt" | |
"io/ioutil" | |
"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 main | |
import ( | |
"fmt" | |
"log" | |
"strings" | |
"time" | |
"gopkg.in/src-d/go-billy.v4/memfs" | |
git "gopkg.in/src-d/go-git.v4" |