Passed
Push — main ( 53329a...1d4b72 )
by Acho
02:01
created

afrikpay.go   A

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A afrikpay.Mode.String 0 2 1
1
package afrikpay
2
3
// Mode is used to determine the payment mode
4
type Mode string
5
6
const (
7
	// ModeCash payment from agent partner account
8
	ModeCash = Mode("cash")
9
	// ModeMoney send payment request
10
	ModeMoney = Mode("money")
11
	// ModeAccount make payment operation from afrikpay client
12
	ModeAccount = Mode("account")
13
)
14
15
// String converts the Mode to a string
16
func (mode Mode) String() string {
17
	return string(mode)
18
}
19