Skip to content

Commit

Permalink
Sort imports
Browse files Browse the repository at this point in the history
It's been bothering me lately the way we structure our imports. I personally like
structuring things like:
- standard lib imports
- github imports
- things we actually take from Pelican
  • Loading branch information
jhiemstrawisc committed Dec 6, 2023
1 parent 25d61d1 commit 2ae0a11
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions namespace_registry/client_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
package nsregistry

import (
"github.com/pkg/errors"

"bufio"
"crypto/ecdsa"
"encoding/hex"
Expand All @@ -32,10 +30,12 @@ import (
"github.com/lestrrat-go/jwx/v2/jwa"
"github.com/lestrrat-go/jwx/v2/jwk"
"github.com/lestrrat-go/jwx/v2/jwt"
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"

"github.com/pelicanplatform/pelican/config"
"github.com/pelicanplatform/pelican/director"
"github.com/pelicanplatform/pelican/utils"
log "github.com/sirupsen/logrus"
)

type clientResponseData struct {
Expand Down
8 changes: 4 additions & 4 deletions namespace_registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ import (
"github.com/gin-gonic/gin"
"github.com/lestrrat-go/jwx/v2/jwk"
"github.com/lestrrat-go/jwx/v2/jwt"
"github.com/pelicanplatform/pelican/config"
"github.com/pelicanplatform/pelican/oauth2"
"github.com/pelicanplatform/pelican/param"
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"

// use this sqlite driver instead of the one from
// github.com/mattn/go-sqlite3, because this one
// doesn't require compilation with CGO_ENABLED
_ "modernc.org/sqlite"

"github.com/pelicanplatform/pelican/config"
"github.com/pelicanplatform/pelican/oauth2"
"github.com/pelicanplatform/pelican/param"
)

var OIDC struct {
Expand Down

0 comments on commit 2ae0a11

Please sign in to comment.