Mirror for https://github.com/STBoyden/go-portfolio
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

refactor: apply new golangci-lint changes

stboyden.com 923bcefb 4741fc50

verified
+20 -12
+2 -1
cmd/main/main.go
··· 6 6 "net/http" 7 7 "time" 8 8 9 + "github.com/STBoyden/gotenv/v2" 10 + 9 11 fs "github.com/STBoyden/go-portfolio" 10 12 "github.com/STBoyden/go-portfolio/internal/pkg/common/utils" 11 13 "github.com/STBoyden/go-portfolio/internal/pkg/middleware" 12 14 "github.com/STBoyden/go-portfolio/internal/pkg/routes" 13 - "github.com/STBoyden/gotenv/v2" 14 15 ) 15 16 16 17 const (
+3 -2
cmd/migrations/main.go
··· 4 4 "fmt" 5 5 "strings" 6 6 7 - fs "github.com/STBoyden/go-portfolio" 8 - "github.com/STBoyden/go-portfolio/internal/pkg/common/utils" 9 7 "github.com/STBoyden/gotenv/v2" 10 8 "github.com/golang-migrate/migrate/v4" 11 9 migratePgx "github.com/golang-migrate/migrate/v4/database/pgx/v5" 12 10 _ "github.com/golang-migrate/migrate/v4/source/file" 13 11 _ "github.com/lib/pq" 12 + 13 + fs "github.com/STBoyden/go-portfolio" 14 + "github.com/STBoyden/go-portfolio/internal/pkg/common/utils" 14 15 ) 15 16 16 17 func main() {
+2 -1
internal/pkg/middleware/auth.go
··· 5 5 "net/http" 6 6 "strings" 7 7 8 + "github.com/google/uuid" 9 + 8 10 "github.com/STBoyden/go-portfolio/internal/pkg/common/utils" 9 11 "github.com/STBoyden/go-portfolio/internal/pkg/persistence" 10 - "github.com/google/uuid" 11 12 ) 12 13 13 14 // AuthMiddleware is an extension over [LoggingMiddleware] (and by extension
+6 -4
internal/pkg/middleware/logging.go
··· 13 13 14 14 type level interface{ loggerLevelMarker() } 15 15 16 - type debug struct{ level } 17 - type info struct{ level } 18 - type warn struct{ level } 19 - type _error struct{ level } 16 + type ( 17 + debug struct{ level } 18 + info struct{ level } 19 + warn struct{ level } 20 + _error struct{ level } 21 + ) 20 22 21 23 // Global logging levels for the Logging middleware. 22 24 //
+2 -1
internal/pkg/routes/api/v1/blog.go
··· 6 6 "io" 7 7 "net/http" 8 8 9 + "github.com/google/uuid" 10 + 9 11 "github.com/STBoyden/go-portfolio/internal/pkg/common/types" 10 12 "github.com/STBoyden/go-portfolio/internal/pkg/common/utils" 11 13 "github.com/STBoyden/go-portfolio/internal/pkg/middleware" 12 14 "github.com/STBoyden/go-portfolio/internal/pkg/persistence" 13 15 "github.com/STBoyden/go-portfolio/internal/pkg/routes/site/views/components" 14 - "github.com/google/uuid" 15 16 ) 16 17 17 18 func blogAdmin() *http.ServeMux {
+3 -2
internal/pkg/routes/api/v1/github.go
··· 6 6 "net/http" 7 7 "os" 8 8 9 + gh "github.com/shurcooL/githubv4" 10 + "golang.org/x/oauth2" 11 + 9 12 "github.com/STBoyden/go-portfolio/internal/pkg/common/types" 10 13 "github.com/STBoyden/go-portfolio/internal/pkg/routes/site/views/components" 11 - gh "github.com/shurcooL/githubv4" 12 - "golang.org/x/oauth2" 13 14 ) 14 15 15 16 type language struct {
+2 -1
internal/pkg/routes/site/site.go
··· 4 4 import ( 5 5 "net/http" 6 6 7 + "github.com/a-h/templ" 8 + 7 9 "github.com/STBoyden/go-portfolio/internal/pkg/routes/site/views" 8 - "github.com/a-h/templ" 9 10 ) 10 11 11 12 func Router() *http.ServeMux {