From 840db082943af3662331b5192fab5f61ec1fc6b3 Mon Sep 17 00:00:00 2001 From: derek mcquay Date: Tue, 23 Aug 2016 09:44:08 -0700 Subject: [PATCH] added some more doc for the funcs --- user.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/user.go b/user.go index 9c22a5b..008fbe3 100644 --- a/user.go +++ b/user.go @@ -21,10 +21,7 @@ type userInfo struct { EmailVerified bool `json:"email_verified"` } -func (u *user) addTranx(t tranx) { - u.txs = append(u.txs, t) -} - +//authorizedEmail checks whether the email coming in is in the preapproved list func authorizedEmail(e string) bool { b := false for _, i := range authEmails { @@ -46,6 +43,7 @@ func getUser(e string) (int, error) { return 0, fmt.Errorf("could not find user") } +//addUser adds user to slice of users func addUser(u userInfo) { _, err := getUser(u.Email) if err != nil {