Files
greenlight/internal/data/movies.go
Maxime Delporte 5ca50c6566 Fixing typo.
2025-10-19 18:08:58 +02:00

19 lines
456 B
Go

package data
import "time"
// Movie
/*
Annotate the Movie struct with struct tags to control how the keys
appear in the JSON-encoded output.
*/
type Movie struct {
ID int64 `json:"id"`
CreatedAt time.Time `json:"-"`
Title string `json:"title"`
Year int32 `json:"year,omitempty"`
Runtime int32 `json:"runtime,omitempty,string"`
Genres []string `json:"genres,omitempty"`
Version int32 `json:"version"`
}