From e0b9309cfca4bec0a4a6bb3a36a45fba5b7af516 Mon Sep 17 00:00:00 2001 From: Oliver Jakoubek Date: Fri, 29 May 2020 14:24:01 +0200 Subject: [PATCH] Added a constructor function for struct MissingParameter to allow access from outside --- product_reference.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/product_reference.go b/product_reference.go index e04593e..9aa28b4 100644 --- a/product_reference.go +++ b/product_reference.go @@ -23,6 +23,13 @@ type MissingParameter struct { missingSize int } +func NewMissingParameter(missingRate, missingSize int) MissingParameter { + return MissingParameter{ + missingRate: missingRate, + missingSize: missingSize, + } +} + func (pr *ProductReference) IssueReference() string { return fmt.Sprintf("+99195%-8s", pr.issueReference) }