Skip to content

cmd/godoc: search causes panic when full text indexing is disabled. #7364

@gopherbot

Description

@gopherbot

by bgarcia@golang.org:

What steps will reproduce the problem?

Run with --maxresults=0 to turn off full text indexing:
godoc -http=:7070 -index -v --maxresults=0

Enter a search term that contains one or more characters that cannot be part of an
identifier, such as "-".  A panic will occur, and the client browser will
receive no reply.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions