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

afrikpay.Mode.String   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
dl 0
loc 2
rs 10
c 0
b 0
f 0
nop 0
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