pass pointers to factory methods

This commit is contained in:
2026-02-01 15:09:45 +00:00
parent 89ab8ee258
commit 72f43452a8
3 changed files with 8 additions and 8 deletions

View File

@@ -4,10 +4,10 @@ import "fmt"
type HeadAmp struct {
baseAddress string
client Client
client *Client
}
func NewHeadAmp(c Client) *HeadAmp {
func NewHeadAmp(c *Client) *HeadAmp {
return &HeadAmp{
baseAddress: c.addressMap["headamp"],
client: c,