package
Version:
v0.0.0-...-899cb79
Opens a new window with list of versions in this module.
Published: Jan 14, 2023
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Author struct {
Name string `json:"name"`
Age int64 `json:"age"`
City string `json:"city"`
}
type AuthorRepository interface {
SaveAuthor(author Author) error
}
type Book struct {
Title string `json:"title"`
Author string `json:"author"`
Price int64 `json:"price"`
Quantity int64 `json:"quantity"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.