amount.go   A
last analyzed

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
cc 1
eloc 5
dl 0
loc 10
ccs 1
cts 1
cp 1
crap 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A money.*Amount.Value 0 2 1
1
package money
2
3
// Amount stores the amounts used for calculations
4
type Amount struct {
5
	val int64
6
}
7
8
// Value returns the amount value
9
func (a *Amount) Value() int64 {
10 1
	return a.val
11
}
12