Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

344 B
Raw Blame
package enum

type Plan int

var (
	//PlanFree is used for tenants on the free plan
	PlanFree Plan = 1
	//PlanPro is used for tenants on the pro plan
	PlanPro Plan = 2
)

var planIDs = map[Plan]string{
	PlanFree: "free",
	PlanPro:  "pro",
}

// String returns the string version of the plan
func (p Plan) String() string {
	return planIDs[p]
}