Find why Activate returns normally but leaves the caller unchanged.
Go
type Account struct {
Active bool
}
func (account Account) Activate() {
account.Active = true
}
func enable(account *Account) {
account.Activate()
}
type Account struct {
Active bool
}
func (account Account) Activate() {
account.Active = true
}
func enable(account *Account) {
account.Activate()
}