golang / gddo

Go Doc Dot Org
https://godoc.org
BSD 3-Clause "New" or "Revised" License
1.1k stars 266 forks source link

Missing variable type of `key` returned in func (*Tokenizer) TagAttr #625

Closed kennykarnama closed 5 years ago

kennykarnama commented 5 years ago

Hi, i just want to confirm that, in go doc https://godoc.org/golang.org/x/net/html#Tokenizer.TagAttr, the key returned by the function is not descriptive. it should be added key []byte

image

jackwilsdon commented 5 years ago

That is a standard Go shorthand for multiple values with the same type (key, val []byte means they're both of type []byte). This also isn't the repository for this issue, as this is simply the godoc.org website itself. If you have any issues with the net package you should open an issue against golang/go.