IsOn20kPlan checks if a user is on the 20k plan
()
| 107 | |
| 108 | // IsOn20kPlan checks if a user is on the 20k plan |
| 109 | func (user User) IsOn20kPlan() bool { |
| 110 | return user.SubscriptionName == SubscriptionName20KMonthly || user.SubscriptionName == SubscriptionName20KYearly |
| 111 | } |
| 112 | |
| 113 | // UserTimeString converts the time to the user's timezone |
| 114 | func (user User) UserTimeString(timestamp time.Time) string { |