Documentation
¶
Index ¶
Constants ¶
View Source
const (
MaxPrice = 1000
)
Variables ¶
This section is empty.
Functions ¶
func CalculateTotalAmount ¶
CalculateTotalAmount calculates the total amount of the order based on the prices of products.
func CurrentISOTime ¶
func CurrentISOTime() string
CurrentISOTime returns the current UTC time in RFC3339 format.
func FormatTimeToISO ¶
FormatTimeToISO returns the time in RFC3339 format.
func RandomPrice ¶
func RandomPrice() float64
RandomPrice - Generates a random price between 0 and 1000.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.