utils

package
v0.0.0-...-c27f07c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	USD = "USD"
	EUR = "EUR"
	CAD = "CAD"
	INR = "INR"
)

Variables

This section is empty.

Functions

func IsSupportedCurrency

func IsSupportedCurrency(currency string) bool

Types

type Config

type Config struct {
	Mode          string `mapstructure:"GIN_MODE"`
	DBDriver      string `mapstructure:"DB_DRIVER"`
	ServerAddress string `mapstructure:"SERVER_ADDRESS"`
	DBUrl         string `mapstructure:"DB_URL"`
	MigrateUrl    string `mapstructure:"MIGRATE_URL"`
}

func LoadConfig

func LoadConfig(path string) Config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL