Skip to content

Commit

Permalink
feat: wire build flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
tx7do committed Nov 5, 2023
1 parent 09b1666 commit f1a7916
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 3 deletions.
3 changes: 3 additions & 0 deletions blog-backend/app/admin/service/internal/biz/init.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build wireinject
// +build wireinject

package biz

import "github.com/google/wire"
Expand Down
3 changes: 3 additions & 0 deletions blog-backend/app/admin/service/internal/data/init.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build wireinject
// +build wireinject

package data

import "github.com/google/wire"
Expand Down
7 changes: 6 additions & 1 deletion blog-backend/app/admin/service/internal/server/init.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
//go:build wireinject
// +build wireinject

package server

import (
"github.com/google/wire"
)

// ProviderSet is server providers.
var ProviderSet = wire.NewSet(NewHTTPServer)
var ProviderSet = wire.NewSet(
NewHTTPServer,
)
3 changes: 3 additions & 0 deletions blog-backend/app/admin/service/internal/service/init.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build wireinject
// +build wireinject

package service

import (
Expand Down
3 changes: 3 additions & 0 deletions blog-backend/app/core/service/internal/biz/init.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build wireinject
// +build wireinject

package biz

import "github.com/google/wire"
Expand Down
3 changes: 3 additions & 0 deletions blog-backend/app/core/service/internal/data/init.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build wireinject
// +build wireinject

package data

import "github.com/google/wire"
Expand Down
7 changes: 6 additions & 1 deletion blog-backend/app/core/service/internal/server/init.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
//go:build wireinject
// +build wireinject

package server

import (
"github.com/google/wire"
)

// ProviderSet is server providers.
var ProviderSet = wire.NewSet(NewGRPCServer)
var ProviderSet = wire.NewSet(
NewGRPCServer,
)
3 changes: 3 additions & 0 deletions blog-backend/app/core/service/internal/service/init.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build wireinject
// +build wireinject

package service

import (
Expand Down
3 changes: 3 additions & 0 deletions blog-backend/app/front/service/internal/biz/init.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build wireinject
// +build wireinject

package biz

import "github.com/google/wire"
Expand Down
3 changes: 3 additions & 0 deletions blog-backend/app/front/service/internal/data/init.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build wireinject
// +build wireinject

package data

import "github.com/google/wire"
Expand Down
7 changes: 6 additions & 1 deletion blog-backend/app/front/service/internal/server/init.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
//go:build wireinject
// +build wireinject

package server

import (
"github.com/google/wire"
)

// ProviderSet is server providers.
var ProviderSet = wire.NewSet(NewHTTPServer)
var ProviderSet = wire.NewSet(
NewHTTPServer,
)
3 changes: 3 additions & 0 deletions blog-backend/app/front/service/internal/service/init.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build wireinject
// +build wireinject

package service

import (
Expand Down

0 comments on commit f1a7916

Please sign in to comment.