Usage
go run *go github.com/owulveryck/test/
package main | |
import ( | |
"fmt" | |
"go/ast" | |
"go/importer" | |
"go/parser" | |
"go/token" | |
"go/types" | |
"os" |
package main | |
import ( | |
"bytes" | |
"fmt" | |
"go/ast" | |
"go/build" | |
"go/format" | |
"go/parser" | |
"go/token" |
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" |
package commitgraph | |
import ( | |
"bytes" | |
"errors" | |
"io" | |
"math" | |
"time" | |
"gopkg.in/src-d/go-git.v4/plumbing" |
package main | |
import ( | |
"bytes" | |
"encoding/binary" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"os" | |
"strings" |
package main | |
import ( | |
"fmt" | |
"log" | |
"strings" | |
"time" | |
"gopkg.in/src-d/go-billy.v4/memfs" | |
git "gopkg.in/src-d/go-git.v4" |
Usage
go run *go github.com/owulveryck/test/
// 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" |
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" |
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" |