I need to differentiate such types as
type A []byte
from a []byte
. Using reflect
, reflect.TypeOf(A{}).Kind
tells me that it is a Slice
of byte
. How can I differentiate []byte{}
from A{}
, without having a bounded list of types to check for?
Aucun commentaire:
Enregistrer un commentaire