]> Cypherpunks repositories - gostls13.git/commit
go/doc: move code from playExample to a separate function
authorJonathan Amsterdam <jba@google.com>
Fri, 22 Apr 2022 13:50:26 +0000 (09:50 -0400)
committerJonathan Amsterdam <jba@google.com>
Tue, 10 May 2022 16:18:12 +0000 (16:18 +0000)
commit2226952b8a9564a83b29cb281238c5adac6c71b3
tree3a5480f3828454fca0c758c6514c147739ca48b2
parent30a2750a91616f8120266b79ea52d293a2398b86
go/doc: move code from playExample to a separate function

The playExample function is very long. Move the code that finds
top-level declarations and unresolved identifiers to a separate
function.

In a future CL, we will be improving that function by removing
unused declarations.

Change-Id: I5632012674687f23094b2bc90615daaecb2cf525
Reviewed-on: https://go-review.googlesource.com/c/go/+/401757
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
src/go/doc/example.go