type Account struct { Active bool } func (account Account) Activate() { account.Active = true } func enable(account *Account) { account.Activate() }