Closed Didainius closed 1 year ago
Before Go had generics, we used type based functions to get addresses of variables.
These were functions in govcd/api.go:
govcd/api.go
takeBoolPointer
takeIntAddress
takeStringPointer
The bbove functions are now replaced by generic function func addrOf[T any](variable T) *T.
func addrOf[T any](variable T) *T
The content of this PR is "search and replace". No user facing changes.
Before Go had generics, we used type based functions to get addresses of variables.
These were functions in
govcd/api.go
:takeBoolPointer
takeIntAddress
takeStringPointer
The bbove functions are now replaced by generic function
func addrOf[T any](variable T) *T
.The content of this PR is "search and replace". No user facing changes.