INNER CODE UNIT · Go

amount

theopenlane/core · cmd/catalog/main.go:773

		amount := float64(price.UnitAmount) / centsToDollars

		label := fmt.Sprintf("$%.2f/%s", amount, price.Interval)
		if price.Nickname != "" {
			label = fmt.Sprintf("%s (%s)", label, price.Nickname)
		}

		labels[i] = label
	}

	prompt := promptui.Select{
		Label: "Select pricing option",
		Items: labels,
		Templates: &promptui.SelectTemplates{
			Label:    "{{ . }}:",
			Active:   "\U0001F449 {{ . | cyan }}",
			Inactive: "  {{ . }}",
			Selected: "\U00002705 {{ . | green }}",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…