Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CryptoCurrency ¶
type CryptoCurrency struct { Id int64 `json:"id" bson:"id" db:"id"` Name string `json:"name" bson:"name" db:"name" validate:"required"` Token string `json:"token" bson:"token" db:"token" validate:"required"` Votes int64 `json:"votes" bson:"votes" db:"votes"` }
func (*CryptoCurrency) Validate ¶
func (c *CryptoCurrency) Validate() error
Validate cryptocurrency structure
Click to show internal directories.
Click to hide internal directories.