ericholguin commented on PR #6852:
URL: https://github.com/apache/trafficcontrol/pull/6852#issuecomment-1137489307

   > Possible improvement: occurrences of `\*test\.Rand` are just a bit more 
common than those of `[^*]test\.Rand` - should these maybe return values 
instead of pointers?
   
   We would have to declare variables wherever a pointer is needed because you 
can't get the address of a function value returned in go. So instead of just 
`test.RandStr()` it'd be: 
   
   ```go
   randStr := test.RandStr()
   ...
   Fqdn:            &randStr,
   ...
   ```
   
   And we'd either be pointing to the same random string variable where needed 
or create multiple random string variables and point to those. Is this what you 
mean or do you know of another way?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to