datamodels

package
v8.5.2+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2017 License: BSD-3-Clause Imports: 0 Imported by: 0

README

Data Model Layer

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Movie

type Movie struct {
	ID     int64  `json:"id"`
	Name   string `json:"name"`
	Year   int    `json:"year"`
	Genre  string `json:"genre"`
	Poster string `json:"poster"`
}

Movie is our sample data structure. Keep note that the tags for public-use (for our web app) should be kept in other file like "web/viewmodels/movie.go" which could wrap by embedding the datamodels.Movie or declare new fields instead butwe will use this datamodel as the only one Movie model in our application, for the shake of simplicty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL