Added a constructor function for struct MissingParameter to allow access from outside

This commit is contained in:
Oliver Jakoubek 2020-05-29 14:24:01 +02:00
parent b30a46e3bc
commit e0b9309cfc

View file

@ -23,6 +23,13 @@ type MissingParameter struct {
missingSize int missingSize int
} }
func NewMissingParameter(missingRate, missingSize int) MissingParameter {
return MissingParameter{
missingRate: missingRate,
missingSize: missingSize,
}
}
func (pr *ProductReference) IssueReference() string { func (pr *ProductReference) IssueReference() string {
return fmt.Sprintf("+99195%-8s", pr.issueReference) return fmt.Sprintf("+99195%-8s", pr.issueReference)
} }