golang/go

x/pkgsite: Reset button for doc examples

Open

#17,223 opened on Sep 25, 2016

View on GitHub
 (11 comments) (0 reactions) (0 assignees)Go (19,008 forks)batch import
FeatureRequestToolshelp wantedpkgsite

Repository metrics

Stars
 (133,883 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

example: https://golang.org/pkg/html/template/#example_Template_block

The only way to reset a code example when you mest up trying something is to refresh the page. This is annoying if you are on a large page. Note that ussualy you are just on this url https://golang.org/pkg/html/template without a hash tag to the example directly so your page wil jump up when you refresh.

Possible solutions update the hash tag when you expand the example

image

Or introduce a reset icon somewhere. (where and how i am not sure yet, feel free to discuss)

Contributor guide