Skip to content

Commit

Permalink
remove vanity imports
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Jan 29, 2025
1 parent 1e4d570 commit 7c5c225
Show file tree
Hide file tree
Showing 313 changed files with 771 additions and 800 deletions.
4 changes: 2 additions & 2 deletions address/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ GOPATH:=$(shell go env GOPATH)
init:
go get -u github.com/golang/protobuf/proto
go get -u github.com/golang/protobuf/protoc-gen-go
go get micro.dev/v4/cmd/protoc-gen-micro
go get micro.dev/v4/cmd/protoc-gen-openapi
go get github.com/micro/micro/v5/cmd/protoc-gen-micro
go get github.com/micro/micro/v5/cmd/protoc-gen-openapi

.PHONY: api
api:
Expand Down
6 changes: 3 additions & 3 deletions address/handler/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"fmt"
"strings"

"github.com/micro/micro/v5/service/errors"
"github.com/micro/micro/v5/service/logger"
"github.com/micro/micro/v5/service/store"
pb "github.com/micro/services/address/proto"
"github.com/micro/services/pkg/api"
"micro.dev/v4/service/errors"
"micro.dev/v4/service/logger"
"micro.dev/v4/service/store"
)

var (
Expand Down
6 changes: 3 additions & 3 deletions address/handler/postcoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"fmt"
"strings"

"github.com/micro/micro/v5/service/errors"
"github.com/micro/micro/v5/service/logger"
"github.com/micro/micro/v5/service/store"
pb "github.com/micro/services/address/proto"
"github.com/micro/services/pkg/api"
"micro.dev/v4/service/errors"
"micro.dev/v4/service/logger"
"micro.dev/v4/service/store"
)

var (
Expand Down
6 changes: 3 additions & 3 deletions address/main.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package main

import (
"github.com/micro/micro/v5/service"
"github.com/micro/micro/v5/service/config"
"github.com/micro/micro/v5/service/logger"
"github.com/micro/services/address/handler"
pb "github.com/micro/services/address/proto"
"micro.dev/v4/service"
"micro.dev/v4/service/config"
"micro.dev/v4/service/logger"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions address/proto/address.pb.micro.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions ai/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ GOPATH:=$(shell go env GOPATH)
.PHONY: init
init:
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install micro.dev/v4/cmd/protoc-gen-micro@latest
go install micro.dev/v4/cmd/protoc-gen-openapi@latest
go install github.com/micro/micro/v5/cmd/protoc-gen-micro@latest
go install github.com/micro/micro/v5/cmd/protoc-gen-openapi@latest

.PHONY: api
api:
Expand Down
6 changes: 3 additions & 3 deletions ai/handler/ai.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import (
"context"
"time"

"github.com/micro/micro/v5/service/config"
"github.com/micro/micro/v5/service/errors"
log "github.com/micro/micro/v5/service/logger"
pb "github.com/micro/services/ai/proto"
"github.com/micro/services/pkg/api"
"github.com/micro/services/pkg/tenant"
"micro.dev/v4/service/config"
"micro.dev/v4/service/errors"
log "micro.dev/v4/service/logger"
)

type Ai struct{}
Expand Down
4 changes: 2 additions & 2 deletions ai/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"github.com/micro/services/ai/handler"
pb "github.com/micro/services/ai/proto"

"micro.dev/v4/service"
"micro.dev/v4/service/logger"
"github.com/micro/micro/v5/service"
"github.com/micro/micro/v5/service/logger"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions ai/proto/ai.pb.micro.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions avatar/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ GOPATH:=$(shell go env GOPATH)
init:
go get -u github.com/golang/protobuf/proto
go get -u github.com/golang/protobuf/protoc-gen-go
go get micro.dev/v4/cmd/protoc-gen-micro
go get micro.dev/v4/cmd/protoc-gen-openapi
go get github.com/micro/micro/v5/cmd/protoc-gen-micro
go get github.com/micro/micro/v5/cmd/protoc-gen-openapi

.PHONY: api
api:
Expand Down
2 changes: 1 addition & 1 deletion avatar/handler/avatar.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"image/png"

"github.com/google/uuid"
"github.com/micro/micro/v5/service/errors"
"github.com/o1egl/govatar"
"micro.dev/v4/service/errors"

pb "github.com/micro/services/avatar/proto"
imagePb "github.com/micro/services/image/proto"
Expand Down
4 changes: 2 additions & 2 deletions avatar/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
pb "github.com/micro/services/avatar/proto"
imagePb "github.com/micro/services/image/proto"

"micro.dev/v4/service"
"micro.dev/v4/service/logger"
"github.com/micro/micro/v5/service"
"github.com/micro/micro/v5/service/logger"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions avatar/proto/avatar.pb.micro.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions bitcoin/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ GOPATH:=$(shell go env GOPATH)
.PHONY: init
init:
go install github.com/golang/protobuf/protoc-gen-go@latest
go install micro.dev/v4/cmd/protoc-gen-micro@latest
go install micro.dev/v4/cmd/protoc-gen-openapi@latest
go install github.com/micro/micro/v5/cmd/protoc-gen-micro@latest
go install github.com/micro/micro/v5/cmd/protoc-gen-openapi@latest

.PHONY: api
api:
Expand Down
4 changes: 2 additions & 2 deletions bitcoin/handler/bitcoin.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"strings"
"time"

"github.com/micro/micro/v5/service/errors"
"github.com/micro/micro/v5/service/logger"
pb "github.com/micro/services/bitcoin/proto"
"github.com/micro/services/pkg/api"
"github.com/patrickmn/go-cache"
"micro.dev/v4/service/errors"
"micro.dev/v4/service/logger"
)

type Bitcoin struct {
Expand Down
4 changes: 2 additions & 2 deletions bitcoin/main.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package main

import (
"github.com/micro/micro/v5/service"
"github.com/micro/micro/v5/service/logger"
"github.com/micro/services/bitcoin/handler"
pb "github.com/micro/services/bitcoin/proto"
"micro.dev/v4/service"
"micro.dev/v4/service/logger"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions bitcoin/proto/bitcoin.pb.micro.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions cache/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ api:
init:
go get -u github.com/golang/protobuf/proto
go get -u github.com/golang/protobuf/protoc-gen-go
go get micro.dev/v4/cmd/protoc-gen-micro
go get micro.dev/v4/cmd/protoc-gen-openapi
go get github.com/micro/micro/v5/cmd/protoc-gen-micro
go get github.com/micro/micro/v5/cmd/protoc-gen-openapi

.PHONY: proto
proto:
Expand Down
4 changes: 2 additions & 2 deletions cache/handler/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ import (
"strings"
"time"

"github.com/micro/micro/v5/service/errors"
log "github.com/micro/micro/v5/service/logger"
pb "github.com/micro/services/cache/proto"
pauth "github.com/micro/services/pkg/auth"
"github.com/micro/services/pkg/cache"
adminpb "github.com/micro/services/pkg/service/proto"
"github.com/micro/services/pkg/tenant"
"micro.dev/v4/service/errors"
log "micro.dev/v4/service/logger"
)

type Cache struct{}
Expand Down
4 changes: 2 additions & 2 deletions cache/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
pb "github.com/micro/services/cache/proto"
adminpb "github.com/micro/services/pkg/service/proto"

"micro.dev/v4/service"
"micro.dev/v4/service/logger"
"github.com/micro/micro/v5/service"
"github.com/micro/micro/v5/service/logger"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions cache/proto/cache.pb.micro.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions carbon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ GOPATH:=$(shell go env GOPATH)
init:
go get -u github.com/golang/protobuf/proto
go get -u github.com/golang/protobuf/protoc-gen-go
go get micro.dev/v4/cmd/protoc-gen-micro
go get micro.dev/v4/cmd/protoc-gen-openapi
go get github.com/micro/micro/v5/cmd/protoc-gen-micro
go get github.com/micro/micro/v5/cmd/protoc-gen-openapi

.PHONY: api
api:
Expand Down
6 changes: 3 additions & 3 deletions carbon/handler/carbon.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package handler
import (
"context"

"github.com/micro/micro/v5/service/config"
"github.com/micro/micro/v5/service/errors"
"github.com/micro/micro/v5/service/logger"
"github.com/micro/services/carbon/domain"
"github.com/micro/services/pkg/api"
"micro.dev/v4/service/config"
"micro.dev/v4/service/errors"
"micro.dev/v4/service/logger"

pb "github.com/micro/services/carbon/proto"
)
Expand Down
4 changes: 2 additions & 2 deletions carbon/main.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package main

import (
"github.com/micro/micro/v5/service"
"github.com/micro/micro/v5/service/logger"
"github.com/micro/services/carbon/handler"
pb "github.com/micro/services/carbon/proto"
"micro.dev/v4/service"
"micro.dev/v4/service/logger"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions carbon/proto/carbon.pb.micro.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion chat/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ GOPATH:=$(shell go env GOPATH)
init:
go get -u github.com/golang/protobuf/proto
go get -u github.com/golang/protobuf/protoc-gen-go
go get micro.dev/v4/cmd/protoc-gen-micro
go get github.com/micro/micro/v5/cmd/protoc-gen-micro

.PHONY: api
api:
Expand Down
8 changes: 4 additions & 4 deletions chat/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (
"time"

"github.com/google/uuid"
"github.com/micro/micro/v5/service/errors"
"github.com/micro/micro/v5/service/events"
"github.com/micro/micro/v5/service/logger"
"github.com/micro/micro/v5/service/store"
pb "github.com/micro/services/chat/proto"
"github.com/micro/services/pkg/tenant"
"micro.dev/v4/service/errors"
"micro.dev/v4/service/events"
"micro.dev/v4/service/logger"
"micro.dev/v4/service/store"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions chat/main.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package main

import (
"github.com/micro/micro/v5/service"
"github.com/micro/micro/v5/service/logger"
"github.com/micro/services/chat/handler"
pb "github.com/micro/services/chat/proto"
"micro.dev/v4/service"
"micro.dev/v4/service/logger"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions chat/proto/chat.pb.micro.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions comments/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ api:
init:
go get -u github.com/golang/protobuf/proto
go get -u github.com/golang/protobuf/protoc-gen-go
go get micro.dev/v4/cmd/protoc-gen-micro
go get micro.dev/v4/cmd/protoc-gen-openapi
go get github.com/micro/micro/v5/cmd/protoc-gen-micro
go get github.com/micro/micro/v5/cmd/protoc-gen-openapi

.PHONY: proto
proto:
Expand Down
8 changes: 4 additions & 4 deletions comments/handler/comments.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ import (
"time"

"github.com/google/uuid"
"github.com/micro/micro/v5/service/client"
"github.com/micro/micro/v5/service/errors"
"github.com/micro/micro/v5/service/logger"
"github.com/micro/micro/v5/service/store"
pb "github.com/micro/services/comments/proto"
streamPb "github.com/micro/services/mq/proto"
pauth "github.com/micro/services/pkg/auth"
adminpb "github.com/micro/services/pkg/service/proto"
"github.com/micro/services/pkg/tenant"
"google.golang.org/protobuf/types/known/structpb"
"micro.dev/v4/service/client"
"micro.dev/v4/service/errors"
"micro.dev/v4/service/logger"
"micro.dev/v4/service/store"
)

// New returns an initialized Comments
Expand Down
Loading

0 comments on commit 7c5c225

Please sign in to comment.