Hello, I was recently working on something that required me to search through some html and I ran into a strange issue. I am new to Go from other languages, so apologies if I am missing some nuance here.
Data struct member of a
x/net/html.Token is a string, but I cannot do any kind of string comparison against it?
According to the docs,
Data should be a string (which the
reflect.TypeOf statement seems to show) but does not show any length, and I can’t check equality against it? Any idea what’s going on here? I’m assuming if the docs were incorrect and I was actually getting a pointer or a reference or something it would show up in the
TypeOf check, but everything just says