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

@@ -3,10 +3,10 @@ package xair
import "fmt"
type Main struct {
client Client
client *Client
}
func newMain(c Client) *Main {
func newMain(c *Client) *Main {
return &Main{
client: c,
}