You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git clone [email protected]:kazhuravlev/example-godoc-problem.git
cd example-godoc-problem
godoc -http localhost:6060
open http://localhost:6060/pkg/github.com/kazhuravlev/example-godoc-problem/example1/#example_Add
open http://localhost:6060/pkg/github.com/kazhuravlev/example-godoc-problem/example2/#example_Add
Minimal example:
Create a function
// math.gopackage math
funcAdd(a, bint) int { returna+b }
... and example for it. Example MUST contains a code block inside.
... and generate HTML again. You will not see a second code block in resulted HTML.
What did you expect to see?
I am expect, that all code inside Example* function will be presented in result HTML. In case that this is a feature (hiding unnecessary code) - I am expect that at least first code block will be fully rendered in result HTML.
What did you see instead?
I see not valid (syntactically) code in rendered HTML.
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
godoc -http localhost:6060
and scroll to exampleFastest way to see the problem
Fastest way to reproduce (localy)
Minimal example:
Create a function
... and example for it. Example MUST contains a code block inside.
Here is resulting html (note that last bracket is not presented in result):
Extended example:
Extend your example function by adding a one more code block after first one. Like this:
... and generate HTML again. You will not see a second code block in resulted HTML.
What did you expect to see?
I am expect, that all code inside
Example*
function will be presented in result HTML. In case that this is a feature (hiding unnecessary code) - I am expect that at least first code block will be fully rendered in result HTML.What did you see instead?
I see not valid (syntactically) code in rendered HTML.
The text was updated successfully, but these errors were encountered: