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

app/v1/controllers/mcq.go   A

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A controllers.NewMcqController 0 2 1
1
package controllers
2
3
import "github.com/memnix/memnix-rest/services/mcq"
4
5
type McqController struct {
6
	mcq.IUseCase
7
}
8
9
func NewMcqController(useCase mcq.IUseCase) McqController {
10
	return McqController{useCase}
11
}
12