helper

package
v1.10.11 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(s []string, e string) bool

func GetPaymentMethodKey added in v1.3.0

func GetPaymentMethodKey(currency, mccCode, operatingCompanyId, brand string) string

func IsIdentified added in v1.3.0

func IsIdentified(id string) bool

func MakeOrderAggregateQuery added in v1.10.1

func MakeOrderAggregateQuery(
	query bson.M,
	lookupCollection string,
	sort []string,
	offset, limit int64,
) []bson.M

func Round added in v1.8.0

func Round(v float64) float64

func TimeTrack added in v1.3.0

func TimeTrack(start time.Time, name string)

Types

type Money added in v1.3.0

type Money struct {
	Precision int64
	// contains filtered or unexported fields
}

func NewMoney added in v1.3.0

func NewMoney() *Money

func (*Money) Round added in v1.3.0

func (m *Money) Round(val float64) (float64, error)

Jump to

Keyboard shortcuts

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