package subject import "fmt" func getPromotionValue(val string) string { return fmt.Sprintf("%s.%s", prefixes.Promotion, val) } var Promotion = struct { GenerateVoucherPromotion string }{ GenerateVoucherPromotion: getPromotionValue("generate_voucher_promotion"), }