helpers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB
View Source
var Env map[string]string

Functions

func ConnectionURLBuilder

func ConnectionURLBuilder(n string) (string, error)

func FormatPrice

func FormatPrice(value float32) string

func FormatToDate

func FormatToDate(date string) string

func GetEnv

func GetEnv(key, def string) string

func SetupDatabase

func SetupDatabase()

func SetupEnvFile

func SetupEnvFile()

Types

type CurrencySetting

type CurrencySetting struct {
	CurrencySymbol    string
	DecimalSeparator  string
	ThousandSeparator string
	NumberOfDecimal   int8
	CurrencyPosition  string
}

type DateSetting

type DateSetting struct {
	TimeZone   string
	DateFormat string
}

Jump to

Keyboard shortcuts

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