>
> @Markus: I normally use browser's search function to get to the function
> and it works well with pkg.go.dev too.
>
>
Using the search function only works if you know the name of the function.

Very common examples when this doesn't work:

Package HTTP:

If you vaguely remember a function name, for example "TrimPrefix" (note:
it's actually "StripPrefix"), search obviously doesn't work. But it's
impossible to just scan through the list of functions in the index to find
"StripPrefix". You have to guess "it probably returns a Handler" or "It
probably is a type that implements Handler" and then looking under the
type.  But the much simpler use case, just going through a list of
functions, is not supported.  Which is difficult and frustrating.

Package x/net/html

The function "Parse" is (arguably) the most important function. But it is
not in the function index (but Render() is, adding to the confusion).
Worse, even if you guessed that there should be a function with "Parse"
in it,  the word "Parse" is very common in the documentation, so browser
search also doesn't work well.

----

I think it will be very useful to have all functions under "Functions" so
that you can just scan through it when you need it.



-Markus




> --
> You received this message because you are subscribed to a topic in the
> Google Groups "golang-nuts" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/golang-nuts/8nyrNxX0Oq8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/20210903131341.2742b5b0%40xmint
> .
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAMoB8rU1H6kxArV7xdona0GwZjafvdKUA7LvWfDw1YhADgDH7w%40mail.gmail.com.

Reply via email to