Added a constructor function for struct MissingParameter to allow access from outside
This commit is contained in:
		
					parent
					
						
							
								b30a46e3bc
							
						
					
				
			
			
				commit
				
					
						e0b9309cfc
					
				
			
		
					 1 changed files with 7 additions and 0 deletions
				
			
		|  | @ -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) | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue