package example import "reflect" func describe(v interface{}) string { t := reflect.TypeOf(v) return t.String() } func cast(v any) string { s, ok := v.(string) if ok { return s } return "" } type Printer interface { Print(msg string) } func printAll(items []interface{}) { for _, item := range items { _ = item } }