Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DateTimeFormatFromIso ¶
type DateTimeFormatFromIso struct {
// contains filtered or unexported fields
}
DateTimeFormatFromIso template helper function
func (*DateTimeFormatFromIso) Func ¶
func (tf *DateTimeFormatFromIso) Func(context.Context) interface{}
Func template function factory
func (*DateTimeFormatFromIso) Inject ¶
func (tf *DateTimeFormatFromIso) Inject(service *application.DateTimeService, logger flamingo.Logger)
Inject dependencies
type DateTimeFormatFromTime ¶
type DateTimeFormatFromTime struct {
// contains filtered or unexported fields
}
DateTimeFormatFromTime template helper function
func (*DateTimeFormatFromTime) Func ¶
func (tf *DateTimeFormatFromTime) Func(context.Context) interface{}
Func template function factory
func (*DateTimeFormatFromTime) Inject ¶
func (tf *DateTimeFormatFromTime) Inject(service *application.DateTimeService, logger flamingo.Logger)
Inject dependencies
type Label ¶
type Label struct {
// contains filtered or unexported fields
}
Label is exported as a template function
func (*Label) Inject ¶
func (tf *Label) Inject(service application.TranslationServiceInterface)
Inject dependencies
type NumberFormatFunc ¶
type NumberFormatFunc struct {
// contains filtered or unexported fields
}
NumberFormatFunc for formatting numbers
func (*NumberFormatFunc) Func ¶
func (nff *NumberFormatFunc) Func(context.Context) interface{}
Func as implementation of debug method
func (*NumberFormatFunc) Inject ¶
func (nff *NumberFormatFunc) Inject( serviceInterface application.TranslationServiceInterface, config *struct { Precision float64 `inject:"config:locale.numbers.precision"` Decimal string `inject:"config:locale.numbers.decimal"` Thousand string `inject:"config:locale.numbers.thousand"` }, )
Inject dependencies
type PriceFormatFunc ¶
type PriceFormatFunc struct {
// contains filtered or unexported fields
}
PriceFormatFunc for formatting prices
func (*PriceFormatFunc) Func ¶
func (pff *PriceFormatFunc) Func(context.Context) interface{}
Func as implementation of debug method todo fix
func (*PriceFormatFunc) Inject ¶
func (pff *PriceFormatFunc) Inject(serviceInterface application.TranslationServiceInterface, config *struct { Config config.Map `inject:"config:locale.accounting"` })
Inject dependencies
type PriceFormatLongFunc ¶
type PriceFormatLongFunc struct {
// contains filtered or unexported fields
}
PriceFormatLongFunc for formatting prices
func (*PriceFormatLongFunc) Func ¶
func (pff *PriceFormatLongFunc) Func(ctx context.Context) interface{}
Func as implementation of debug method
func (*PriceFormatLongFunc) Inject ¶
func (pff *PriceFormatLongFunc) Inject( serviceInterface application.TranslationServiceInterface, formatFunc *PriceFormatFunc, config *struct { Config config.Map `inject:"config:locale.accounting"` }, )
Inject dependencies
Click to show internal directories.
Click to hide internal directories.