From be2aaad1580b419d9d3be8099c99ed3cf78d27c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Giovanni=20Jules?= Date: Tue, 12 Apr 2022 11:25:27 +0400 Subject: [PATCH] chore: change github username --- .golangci.yml | 2 +- README.md | 6 +++--- cache/cache.go | 4 ++-- cmd/serve.go | 18 +++++++++--------- cmd/version.go | 2 +- go.mod | 2 +- logger/logger.go | 2 +- main.go | 2 +- spoty/spoty.go | 10 +++++----- tracer/tracer.go | 2 +- transport/http/client.go | 4 ++-- transport/http/errors.go | 2 +- transport/http/handler.go | 2 +- transport/http/server.go | 12 ++++++------ transport/messenger/publisher.go | 6 +++--- transport/messenger/router.go | 6 +++--- transport/messenger/subscriber.go | 6 +++--- waypoint.hcl | 2 +- 18 files changed, 45 insertions(+), 45 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 8c7dc32..6e7d939 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -43,7 +43,7 @@ linters-settings: # put imports beginning with prefix after 3rd-party packages; # only support one prefix # if not set, use goimports.local-prefixes - # local-prefixes: github.com/JulesMike/spoty + # local-prefixes: github.com/mgjules/spoty # gocognit: # # minimal code complexity to report, 30 by default (but we recommend 10-20) diff --git a/README.md b/README.md index 552a3b9..864d7eb 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # spoty 🎵 -[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=for-the-badge)](https://godoc.org/github.com/JulesMike/spoty) -[![Release](https://img.shields.io/github/release/JulesMike/spoty.svg?style=for-the-badge)](https://github.com/JulesMike/spoty/releases/latest) +[![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=for-the-badge)](https://godoc.org/github.com/mgjules/spoty) +[![Release](https://img.shields.io/github/release/JulesMike/spoty.svg?style=for-the-badge)](https://github.com/mgjules/spoty/releases/latest) [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg?style=for-the-badge)](https://conventionalcommits.org) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg?style=for-the-badge)](LICENSE) @@ -16,7 +16,7 @@ Spoty provides simple REST API endpoints to query the current playing track on [ ## Getting started -1. Download the corresponding binary for your operating system and architecture from the [releases](https://github.com/JulesMike/spoty/releases) page. +1. Download the corresponding binary for your operating system and architecture from the [releases](https://github.com/mgjules/spoty/releases) page. 2. Create a Spotify application [here](https://developer.spotify.com/dashboard/applications). diff --git a/cache/cache.go b/cache/cache.go index ac4c172..95e019e 100644 --- a/cache/cache.go +++ b/cache/cache.go @@ -1,9 +1,9 @@ package cache import ( - "github.com/JulesMike/spoty/config" - "github.com/JulesMike/spoty/json" "github.com/dgraph-io/ristretto" + "github.com/mgjules/spoty/config" + "github.com/mgjules/spoty/json" "go.uber.org/fx" ) diff --git a/cmd/serve.go b/cmd/serve.go index 1947c1d..e591403 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -3,15 +3,15 @@ package cmd import ( "context" - "github.com/JulesMike/spoty/build" - "github.com/JulesMike/spoty/cache" - "github.com/JulesMike/spoty/config" - "github.com/JulesMike/spoty/health" - "github.com/JulesMike/spoty/logger" - "github.com/JulesMike/spoty/spoty" - "github.com/JulesMike/spoty/tracer" - "github.com/JulesMike/spoty/transport/http" - "github.com/JulesMike/spoty/transport/messenger" + "github.com/mgjules/spoty/build" + "github.com/mgjules/spoty/cache" + "github.com/mgjules/spoty/config" + "github.com/mgjules/spoty/health" + "github.com/mgjules/spoty/logger" + "github.com/mgjules/spoty/spoty" + "github.com/mgjules/spoty/tracer" + "github.com/mgjules/spoty/transport/http" + "github.com/mgjules/spoty/transport/messenger" "github.com/spf13/cobra" "go.uber.org/fx" ) diff --git a/cmd/version.go b/cmd/version.go index 435c8f9..2f9fca4 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/JulesMike/spoty/build" + "github.com/mgjules/spoty/build" "github.com/spf13/cobra" ) diff --git a/go.mod b/go.mod index d750cf5..27256d9 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/JulesMike/spoty +module github.com/mgjules/spoty go 1.18 diff --git a/logger/logger.go b/logger/logger.go index e491d9f..0d60357 100644 --- a/logger/logger.go +++ b/logger/logger.go @@ -5,7 +5,7 @@ import ( "fmt" "io" - "github.com/JulesMike/spoty/config" + "github.com/mgjules/spoty/config" "github.com/uptrace/opentelemetry-go-extra/otelzap" "go.uber.org/fx" "go.uber.org/zap" diff --git a/main.go b/main.go index 31b2040..f7bcce7 100644 --- a/main.go +++ b/main.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - "github.com/JulesMike/spoty/cmd" + "github.com/mgjules/spoty/cmd" ) // @title Spoty API diff --git a/spoty/spoty.go b/spoty/spoty.go index cec4b47..b8b0511 100644 --- a/spoty/spoty.go +++ b/spoty/spoty.go @@ -12,14 +12,14 @@ import ( "sync" "time" - "github.com/JulesMike/spoty/cache" - "github.com/JulesMike/spoty/config" - "github.com/JulesMike/spoty/health" - "github.com/JulesMike/spoty/logger" - "github.com/JulesMike/spoty/tracer" "github.com/cenkalti/dominantcolor" "github.com/google/uuid" "github.com/iancoleman/strcase" + "github.com/mgjules/spoty/cache" + "github.com/mgjules/spoty/config" + "github.com/mgjules/spoty/health" + "github.com/mgjules/spoty/logger" + "github.com/mgjules/spoty/tracer" "github.com/zmb3/spotify" "go.uber.org/fx" ) diff --git a/tracer/tracer.go b/tracer/tracer.go index 5397e82..9901a14 100644 --- a/tracer/tracer.go +++ b/tracer/tracer.go @@ -1,7 +1,7 @@ package tracer import ( - "github.com/JulesMike/spoty/config" + "github.com/mgjules/spoty/config" "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/exporters/jaeger" diff --git a/transport/http/client.go b/transport/http/client.go index a4c0a14..276cf26 100644 --- a/transport/http/client.go +++ b/transport/http/client.go @@ -1,9 +1,9 @@ package http import ( - "github.com/JulesMike/spoty/config" - "github.com/JulesMike/spoty/json" "github.com/go-resty/resty/v2" + "github.com/mgjules/spoty/config" + "github.com/mgjules/spoty/json" "go.opentelemetry.io/otel" "go.opentelemetry.io/otel/propagation" ) diff --git a/transport/http/errors.go b/transport/http/errors.go index 6335376..2872b0b 100644 --- a/transport/http/errors.go +++ b/transport/http/errors.go @@ -1,6 +1,6 @@ package http -import "github.com/JulesMike/spoty/json" +import "github.com/mgjules/spoty/json" // Error represents a problem details object as described in RFC 7807. type Error struct { diff --git a/transport/http/handler.go b/transport/http/handler.go index 55648a0..c885f77 100644 --- a/transport/http/handler.go +++ b/transport/http/handler.go @@ -3,9 +3,9 @@ package http import ( "net/http" - "github.com/JulesMike/spoty/docs" ahealth "github.com/alexliesenfeld/health" "github.com/gin-gonic/gin" + "github.com/mgjules/spoty/docs" ginSwagger "github.com/swaggo/gin-swagger" "github.com/swaggo/gin-swagger/swaggerFiles" ) diff --git a/transport/http/server.go b/transport/http/server.go index 5c5a6c4..056cdf3 100644 --- a/transport/http/server.go +++ b/transport/http/server.go @@ -6,14 +6,14 @@ import ( "net/http" "time" - "github.com/JulesMike/spoty/build" - "github.com/JulesMike/spoty/config" - "github.com/JulesMike/spoty/health" - "github.com/JulesMike/spoty/logger" - "github.com/JulesMike/spoty/spoty" - "github.com/JulesMike/spoty/tracer" ginzap "github.com/gin-contrib/zap" "github.com/gin-gonic/gin" + "github.com/mgjules/spoty/build" + "github.com/mgjules/spoty/config" + "github.com/mgjules/spoty/health" + "github.com/mgjules/spoty/logger" + "github.com/mgjules/spoty/spoty" + "github.com/mgjules/spoty/tracer" "go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin" "go.uber.org/fx" ) diff --git a/transport/messenger/publisher.go b/transport/messenger/publisher.go index 8de2188..572b206 100644 --- a/transport/messenger/publisher.go +++ b/transport/messenger/publisher.go @@ -6,13 +6,13 @@ import ( "fmt" "time" - "github.com/JulesMike/spoty/config" - "github.com/JulesMike/spoty/health" - "github.com/JulesMike/spoty/logger" "github.com/ThreeDotsLabs/watermill" "github.com/ThreeDotsLabs/watermill-amqp/v2/pkg/amqp" "github.com/ThreeDotsLabs/watermill/message" "github.com/ThreeDotsLabs/watermill/pubsub/gochannel" + "github.com/mgjules/spoty/config" + "github.com/mgjules/spoty/health" + "github.com/mgjules/spoty/logger" ) // Publisher is a wrapper for amqp.Publisher. diff --git a/transport/messenger/router.go b/transport/messenger/router.go index c36b2b6..00c7035 100644 --- a/transport/messenger/router.go +++ b/transport/messenger/router.go @@ -6,12 +6,12 @@ import ( "fmt" "time" - "github.com/JulesMike/spoty/config" - "github.com/JulesMike/spoty/health" - "github.com/JulesMike/spoty/logger" "github.com/ThreeDotsLabs/watermill" "github.com/ThreeDotsLabs/watermill/message" "github.com/ThreeDotsLabs/watermill/message/router/middleware" + "github.com/mgjules/spoty/config" + "github.com/mgjules/spoty/health" + "github.com/mgjules/spoty/logger" "go.uber.org/fx" ) diff --git a/transport/messenger/subscriber.go b/transport/messenger/subscriber.go index ad4d651..199fef7 100644 --- a/transport/messenger/subscriber.go +++ b/transport/messenger/subscriber.go @@ -7,13 +7,13 @@ import ( "strings" "time" - "github.com/JulesMike/spoty/config" - "github.com/JulesMike/spoty/health" - "github.com/JulesMike/spoty/logger" "github.com/ThreeDotsLabs/watermill" "github.com/ThreeDotsLabs/watermill-amqp/v2/pkg/amqp" "github.com/ThreeDotsLabs/watermill/message" "github.com/ThreeDotsLabs/watermill/pubsub/gochannel" + "github.com/mgjules/spoty/config" + "github.com/mgjules/spoty/health" + "github.com/mgjules/spoty/logger" ) // Subscriber is a wrapper for amqp.Subscriber. diff --git a/waypoint.hcl b/waypoint.hcl index 96fa7a8..aa8c448 100644 --- a/waypoint.hcl +++ b/waypoint.hcl @@ -14,7 +14,7 @@ runner { profile = "kubernetes" data_source "git" { - url = "https://github.com/JulesMike/spoty.git" + url = "https://github.com/mgjules/spoty.git" ref = "main" }