Skip to content

Instantly share code, notes, and snippets.

@abnercosta
abnercosta / asymmetric.go
Created February 18, 2018 14:39 — forked from cryptix/LICENSE
example of using JWT for http authentication in go
package main
// using asymmetric crypto/RSA keys
import (
"crypto/rsa"
"fmt"
"io/ioutil"
"log"
"net/http"
@abnercosta
abnercosta / golang-nuts.go
Created January 21, 2018 15:33 — forked from ryanfitz/golang-nuts.go
two ways to call a function every 2 seconds
package main
import (
"fmt"
"time"
)
// Suggestions from golang-nuts
// http://play.golang.org/p/Ctg3_AQisl