From 336941f5843f8405b3a80ba9657aefd9cf17d330 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 10 Apr 2020 19:41:10 +0000 Subject: [PATCH] go fmt --- mockid.go | 8 ++++---- mockid/mockid.go | 2 +- mockid/mockid_test.go | 11 +++++------ 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/mockid.go b/mockid.go index aece92b..164c180 100644 --- a/mockid.go +++ b/mockid.go @@ -10,9 +10,9 @@ import ( "os" "strconv" - "git.coolaj86.com/coolaj86/go-mockid/mockid" + "git.coolaj86.com/coolaj86/go-mockid/mockid" - _ "github.com/joho/godotenv/autoload" + _ "github.com/joho/godotenv/autoload" ) func main() { @@ -58,7 +58,7 @@ func main() { host = "http://localhost:" + strconv.Itoa(port) } -var jwksPrefix string + var jwksPrefix string if nil != prefixFlag && "" != *prefixFlag { jwksPrefix = *prefixFlag } else { @@ -70,7 +70,7 @@ var jwksPrefix string os.Exit(1) } - mockid.Route(jwksPrefix, priv, jwk) + mockid.Route(jwksPrefix, priv, jwk) fs := http.FileServer(http.Dir("public")) http.Handle("/", fs) diff --git a/mockid/mockid.go b/mockid/mockid.go index 1e0548d..01caf9f 100644 --- a/mockid/mockid.go +++ b/mockid/mockid.go @@ -39,7 +39,7 @@ func init() { nonces = make(map[string]int64) } -func Route(jwksPrefix string , priv *ecdsa.PrivateKey, jwk *PrivateJWK) { +func Route(jwksPrefix string, priv *ecdsa.PrivateKey, jwk *PrivateJWK) { pub := &priv.PublicKey thumbprint := thumbprintKey(pub) diff --git a/mockid/mockid_test.go b/mockid/mockid_test.go index c62ee94..7c1949a 100644 --- a/mockid/mockid_test.go +++ b/mockid/mockid_test.go @@ -1,13 +1,12 @@ package mockid import ( - "testing" - "time" - - //keypairs "github.com/big-squid/go-keypairs" - //"github.com/big-squid/go-keypairs/keyfetch/uncached" + "testing" + "time" + //keypairs "github.com/big-squid/go-keypairs" + //"github.com/big-squid/go-keypairs/keyfetch/uncached" ) func TestTest(t *testing.T) { - t.Fatal("no test") + t.Fatal("no test") }