Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNameInvalid = errors.New("name is empty")
)
example
View Source
var ( // ErrNoRow example ErrNoRow = errors.New("no rows in result set") )
Functions ¶
Types ¶
type Account ¶
type Account2 ¶
type Account2 struct { ID int `json:"id" example:"113" maximum:"195" format:"int64"` Name string `json:"name" example:"account name"` SomeNumber int `json:"some_number" example:"1234"` CustomVal123 string `json:"custom_val_123" example:"custom val 123"` CustomType4567 []CustomType456 `json:"custom_type_4567" description:"custom type 4567 description"` // zzz UUID uuid.UUID `json:"uuid" example:"550e8400-e29b-41d4-a716-446655440000" format:"uuid"` }
Account example
type AddAccount ¶
type AddAccount struct {
Name string `json:"name" example:"account name"`
}
AddAccount example
type Bottle ¶
type Bottle struct { ID int `json:"id" example:"1"` Name string `json:"name" example:"bottle_name"` Account Account `json:"account"` }
Bottle example
type CustomType456 ¶
type Message ¶
type Message struct {
Message string `json:"message" example:"message"`
}
Message example
type UpdateAccount ¶
type UpdateAccount struct {
Name string `json:"name" example:"account name"`
}
UpdateAccount example
Click to show internal directories.
Click to hide internal directories.