On Wed, Feb 12, 2025 at 10:54 PM David Karr <davidmichaelk...@gmail.com> wrote:

`[]any` is a slice type (https://go.dev/ref/spec#Slice_types), not an
interface type (https://go.dev/ref/spec#Interface_types).

But type assertions, as in `expr.(someType)`, are valid only for
interface types: https://go.dev/ref/spec#Type_assertions

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/CAA40n-XG3SzPOgCOsznM76hqhsMOfLEp1pbt2R_TQvMKsBFQmg%40mail.gmail.com.

Reply via email to