You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2022/10/12 20:41:37 UTC
[GitHub] [trafficcontrol] zrhoffman commented on a diff in pull request #7132: Use Generics in TO Integration Tests
zrhoffman commented on code in PR #7132:
URL: https://github.com/apache/trafficcontrol/pull/7132#discussion_r993877842
##########
lib/go-util/ptr.go:
##########
@@ -21,6 +21,10 @@ package util
import "time"
+func Ptr[T any](v T) *T {
+ return &v
+}
+
Review Comment:
This PR adds several additional usages of `util.StrPtr()` and `util.IntPtr()` that can be replaced with `util.Ptr()` now that it exists
--
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: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org