aboutsummaryrefslogtreecommitdiff
path: root/account.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-27 00:37:47 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-27 00:37:47 +0100
commit13be0f746259664cbaff1b4fef9d65dd278391a2 (patch)
tree11692a3678d8290fee4e77b1e9e7ec063ffcbfcd /account.go
parent36fbcdd2bdef6176538367f71fa25609b18a705c (diff)
Hide other fields
Diffstat (limited to 'account.go')
-rw-r--r--account.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/account.go b/account.go
index 37b8ec0..cbe2772 100644
--- a/account.go
+++ b/account.go
@@ -16,7 +16,7 @@ const KeySize = 2048
// Account ...
type Account struct {
- Contact Contacts
+ contact Contacts
privKey *rsa.PrivateKey
signer jose.Signer
nonce chan string
@@ -36,13 +36,13 @@ func (a *Account) AddMail(email string) error {
if err != nil {
return err
}
- a.Contact = append(a.Contact, Mail(m.Address))
+ a.contact = append(a.contact, Mail(m.Address))
return nil
}
func (a *Account) AddPhone(phone string) error {
if ph := strings.TrimSpace(phone); ph != "" {
- a.Contact = append(a.Contact, Phone(ph))
+ a.contact = append(a.contact, Phone(ph))
}
return nil
}