MCPcopy Create free account
hub / github.com/docker/model-test / Product

Struct Product

models/chat.go:77–83  ·  view source on GitHub ↗

Product represents a product in the catalog

Source from the content-addressed store, hash-verified

75
76// Product represents a product in the catalog
77type Product struct {
78 Name string `json:"name"`
79 Category string `json:"category"`
80 Price float64 `json:"price"`
81 Description string `json:"description,omitempty"`
82 InStock bool `json:"in_stock"`
83}
84
85// CheckoutResult represents the result of a checkout operation
86type CheckoutResult struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected