You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Sneaker is the struct to hold sneaker specific details
type Sneaker struct {
shoeType string
size int
color string
}
func (s *Sneaker) describe() string {
details := getShoeDetails(s.shoeType)
return fmt.Sprintf("The %s is of size %d, color %s and costs %.2f. The Manufacturer is %s", details.name, s.size, s.color, details.price, details.brand)