Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transaction ¶
type Transaction struct { ID string `gorm:"primaryKey"` CreatedAt time.Time `json:"-"` UpdatedAt time.Time `json:"-"` UserID string `json:"userID"` AssetType string `json:"assetType"` AssetID string `json:"assetID"` Quantity float64 `json:"quantity"` Price float64 `json:"price"` ExecutedAt time.Time `json:"executedAt"` }
func (Transaction) Day ¶
func (t Transaction) Day() time.Time
Day returns the day of the execution (time: 00:00:00).
Click to show internal directories.
Click to hide internal directories.