Passed
Pull Request — main (#166)
by Yume
02:21
created

controllers.NewCardController   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 1
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
package controllers
2
3
import "github.com/memnix/memnix-rest/services/card"
4
5
type CardController struct {
6
	card.IUseCase
7
}
8
9
func NewCardController(useCase card.IUseCase) CardController {
10
	return CardController{IUseCase: useCase}
11
}
12