models

package
v0.0.0-...-fd59ab7 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Author

type Author struct {
	FirstName string `json:"firstname,omitempty" bson:"firstname,omitempty"`
	LastName  string `json:"lastname,omitempty" bson:"lastname,omitempty"`
}

type Book

type Book struct {
	ID     primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitemty"`
	Isbn   string             `json:"isbn,omitempty" bson:"isbn,omitemty"`
	Title  string             `json:"title" bson:"_title,omitemty"`
	Author *Author            `json:"author" bson:"author,omitemty"`
}

Create struct models

Jump to

Keyboard shortcuts

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