aboutsummaryrefslogtreecommitdiff
path: root/cvss/v2scores.go
diff options
context:
space:
mode:
Diffstat (limited to 'cvss/v2scores.go')
-rw-r--r--cvss/v2scores.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/cvss/v2scores.go b/cvss/v2scores.go
index 03bbc24..990b805 100644
--- a/cvss/v2scores.go
+++ b/cvss/v2scores.go
@@ -6,27 +6,27 @@ import (
// CVSS v2 base, temporal, and environmental scores.
type v2Scores struct {
- base v2Score // base score
- temporal v2Score // temporal score
- env v2Score // environmental score
+ base Score // base score
+ temporal Score // temporal score
+ env Score // environmental score
}
// Create new CVSS v2Scores from floats.
func newV2ScoresFromFloats(base, temporal, env float64) (v2Scores, error) {
- // convert base score from float to v2score
- baseScore, err := newV2Score(base)
+ // convert base from float to Score
+ baseScore, err := NewScore(base)
if err != nil {
return v2Scores{}, err
}
- // convert temporal score from float to v2score
- tempScore, err := newV2Score(temporal)
+ // convert temporal from float to Score
+ tempScore, err := NewScore(temporal)
if err != nil {
return v2Scores{}, err
}
- // convert env score from float to v2score
- envScore, err := newV2Score(env)
+ // convert env from float to Score
+ envScore, err := NewScore(env)
if err != nil {
return v2Scores{}, err
}