So lets say I have an function that returns a pointer struct object (the addr of the struct object).
Example struct:
type (
user struct {
email string
ctx context.Context
}
)
Its a weird example I know. But my question is, when i make a method for this struct type that creates and returns an pointer touser (return &newUser). Does this mean that in my memory there is a user object holded which contains email and ctx. Because user is a pointer to the struct the values i change overtime maybe with newer methods are automatically manipulating the user object right