package
Version:
v0.0.0-...-c4afa3a
Opens a new window with list of versions in this module.
Published: Jan 11, 2022
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func NewDB() (*pg.DB, error)
type Agent struct {
ID int64 `json:"id"`
Name string `json:"name"`
}
type Home struct {
ID int64 `json:"id"`
Price int64 `json:"price"`
Description string `json:"description"`
Address string `json:"address"`
AgentID int64 `json:"agent_id"`
Agent *Agent `pg:"rel:has-one" json:"agent"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.