You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
384 B
Go

package data
import "time"
// MUST export fields to serialize them
type Movie struct {
ID int64 `json:"id"`
CreatedAt time.Time `json:"-"` // omits always
Title string `json:"title"`
Year int32 `json:"year,omitzero"`
Runtime int32 `json:"runtime,omitzero"`
Genres []string `json:"genres,omitzero"`
Version int32 `json:"version"`
}