model

package
v0.0.0-...-caff7f9 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2018 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Street  string `bson:"street" json:"street"`
	City    string `bson:"city" json:"city"`
	State   string `bson:"state" json:"state"`
	Number  int    `bson:"number" json:"number"`
	Country string `bson:"country" json:"country"`
}

Address model to address ...

type Contact

type Contact struct {
	ID      bson.ObjectId `bson:"_id" json:"id"`
	Name    string        `bson:"name" json:"name"`
	Phone   string        `bson:"phone" json:"phone"`
	Email   string        `bson:"email" json:"email"`
	Adrress Address       `bson:"address" json:"address,omitempty"`
}

Contact model to contact ...

Jump to

Keyboard shortcuts

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