package
Version:
v1.23.10
Opens a new window with list of versions in this module.
Published: Mar 20, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var Pets = []Pet{
{ID: 1, Name: "Dog", PhotoURLs: []string{}, Status: "available", Tags: nil},
{ID: 2, Name: "Cat", PhotoURLs: []string{}, Status: "pending", Tags: nil},
}
type Pet struct {
ID int64 `json:"id"`
Name string `json:"name"`
PhotoURLs []string `json:"photoUrls,omitempty"`
Status string `json:"status,omitempty"`
Tags []Tag `json:"tags,omitempty"`
Child *Pet `json:"child"`
CHilds []*Pet `json:"childs"`
}
Pet the pet model.
type PetDTO struct {
Name string `json:"name"`
PhotoURLs []string `json:"photoUrls,omitempty"`
Status string `json:"status,omitempty"`
Tags []Tag `json:"tags,omitempty"`
}
PetDTO the pet dto.
type Tag struct {
ID int64 `json:"id"`
Name string `json:"name"`
}
Tag the tag model.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.