Discover Packages
github.com/GolubAlexander/golang-examples/http-server
models
package
Version:
v0.0.0-...-be8e022
Opens a new window with list of versions in this module.
Published: May 10, 2020
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
Documentation
¶
type ErrorMessage struct {
Message string `json:"message"`
}
type Item struct {
ID int `json:"id"`
Name string `json:"name"`
Price int `json:"price"`
}
type ListResponse struct {
Meta Meta `json:"meta"`
Items []Item `json:"items"`
}
type Meta struct {
ItemAmount int `json:"item_amount"`
PageAmount int `json:"page_amount"`
PageSize int `json:"page_size"`
CurrentPage int `json:"current_page"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.