func()

in models/order.go [29:37]


func (o Order) Total() float64 {
	var total = 0.0
	for i := 0; i <= len(o.Items)-1; i++ {

		item := o.Items[i]
		total += item.UnitPrice * item.Qty
	}
	return total
}