Skip to content

Instantly share code, notes, and snippets.

@calvn
calvn / main.go
Created January 2, 2018 06:04 — forked from marians/main.go
OAuth 2.0 authentication in a Golang CLI
package main
import (
"context"
"crypto/tls"
"fmt"
"log"
"net/http"
"net/url"
"time"

Keybase proof

I hereby claim:

  • I am calvn on github.
  • I am calvn (https://keybase.io/calvn) on keybase.
  • I have a public key whose fingerprint is D87C F655 FC7F 81D2 5D11 D495 3006 FD1F 1481 B92A

To claim this, I am signing this object:

@calvn
calvn / git2go_itr_err.go
Created May 25, 2016 20:23
git2go BranchIterator ForEach() bug
package main
import (
"fmt"
"os"
"path/filepath"
"gopkg.in/libgit2/git2go.v24"
)