templatefunctions

package
v0.0.0-...-fd23dd1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: OSL-3.0 Imports: 9 Imported by: 2

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
}

DateTime template helper function

func (*DateTimeFormatFromIso) Func

func (tf *DateTimeFormatFromIso) Func() interface{}

Func template function factory

func (*DateTimeFormatFromIso) Inject

func (tf *DateTimeFormatFromIso) Inject(service *application.DateTimeService, logger flamingo.Logger)

type DateTimeFormatFromTime

type DateTimeFormatFromTime struct {
	// contains filtered or unexported fields
}

DateTime template helper function

func (*DateTimeFormatFromTime) Func

func (tf *DateTimeFormatFromTime) Func() interface{}

Func template function factory

func (*DateTimeFormatFromTime) Inject

func (tf *DateTimeFormatFromTime) Inject(service *application.DateTimeService, logger flamingo.Logger)

type Label

type Label struct {
	// contains filtered or unexported fields
}

Label is exported as a template function

func (*Label) Func

func (tf *Label) Func() interface{}

func (*Label) Inject

func (tf *Label) Inject(service application.TranslationServiceInterface)

type NumberFormatFunc

type NumberFormatFunc struct {
	// contains filtered or unexported fields
}

NumberFormatFunc for formatting numbers

func (*NumberFormatFunc) Func

func (nff *NumberFormatFunc) Func() 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"`
	},
)

type PriceFormatFunc

type PriceFormatFunc struct {
	// contains filtered or unexported fields
}

PriceFormatFunc for formatting prices

func (*PriceFormatFunc) Func

func (pff *PriceFormatFunc) Func() interface{}

Func as implementation of debug method

func (*PriceFormatFunc) Inject

func (pff *PriceFormatFunc) Inject(serviceInterface application.TranslationServiceInterface, config *struct {
	Config config.Map `inject:"config:locale.accounting"`
})

type PriceFormatLongFunc

type PriceFormatLongFunc struct {
	// contains filtered or unexported fields
}

PriceFormatFunc for formatting prices

func (*PriceFormatLongFunc) Func

func (pff *PriceFormatLongFunc) Func() 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"`
	},
)

Jump to

Keyboard shortcuts

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