mathcal

package
v1.2.18 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PaymentCNY = "¥"
	PaymentUSD = "$"

	CountNumber = "个"
	CountWeight = "克"

	OrderByTotal = "total"
	OrderByCount = "count"
	OrderByUnit  = "unit"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscountHdr

type DiscountHdr struct {
	Payment    string // PaymentCNY, PaymentUSD
	TotalPrice []float64
	Count      string // CountNumber, CountWeight
	TotalCount []int
	OrderBy    string // OrderByTotal, OrderByCount, OrderByUnit
	// contains filtered or unexported fields
}

func NewCNYNum

func NewCNYNum(tot []float64, cnt []int) *DiscountHdr

func NewCNYWeight

func NewCNYWeight(tot []float64, cnt []int) *DiscountHdr

func (*DiscountHdr) Cal

func (h *DiscountHdr) Cal() *DiscountHdr

func (*DiscountHdr) Log

func (h *DiscountHdr) Log()

func (*DiscountHdr) Sort

func (h *DiscountHdr) Sort() *DiscountHdr

Jump to

Keyboard shortcuts

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