1
0
mirror of https://github.com/golang/go synced 2024-11-18 20:44:45 -07:00
go/godoc/static
Brad Fitzpatrick 2a413a02cc godoc/static: let client use vet check returned by /compile endpoint
(Forked off Yury Smolsky's CL 176618)

With this change, the playground.js client now asks the server to do a
vet check in the same HTTP request as the /compile (and run) step. If
the server replies that it understands the request (VetErrors or VetOK
in the repsonse), then the client can avoid the latency of a second
HTTP roundtrip. We'll remove the /vet handler after we see it fall out
of use from older clients.

Updates golang/go#31970

Change-Id: I5b123883e19cbc6a8ec30c50705e6b945a4d322d
Reviewed-on: https://go-review.googlesource.com/c/tools/+/176939
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2019-05-13 21:41:31 +00:00
..
analysis godoc/static/analysis: update user documentation 2015-06-26 20:38:07 +00:00
images
callgraph.html
codewalk.html
codewalkdir.html
dirlist.html
doc.go
error.html
example.html godoc: add GoogleCN property to pages 2017-08-02 21:09:52 +00:00
gen_test.go cmd/godoc,cmd/gorename,refactor/rename: skip tests on GOOS=android 2019-03-06 15:27:20 +00:00
gen.go godoc, cmd/godoc: remove CLI support 2018-10-11 02:31:40 +00:00
godoc.html godoc: inject treeview content only when needed 2018-10-11 02:39:00 +00:00
godocs.js godoc: generate TOC from server-side for search page 2018-10-19 20:12:13 +00:00
implements.html
jquery.js
jquery.treeview.css
jquery.treeview.edit.js
jquery.treeview.js
makestatic.go godoc/static: add test for static.go file generation 2018-05-03 19:34:25 +00:00
methodset.html
opensearch.xml
package.html godoc: inject treeview content only when needed 2018-10-11 02:39:00 +00:00
packageroot.html godoc/vfs: improve implementation of RootType 2018-04-11 20:41:25 +00:00
play.js godoc/static: use window scope for checking notesEnabled 2016-07-17 07:19:41 +00:00
playground.js godoc/static: let client use vet check returned by /compile endpoint 2019-05-13 21:41:31 +00:00
search.html godoc: generate TOC from server-side for search page 2018-10-19 20:12:13 +00:00
searchcode.html
searchdoc.html
searchtxt.html
static.go godoc/static: let client use vet check returned by /compile endpoint 2019-05-13 21:41:31 +00:00
style.css godoc/static: inherit textarea color to avoid illegible text 2019-01-30 19:01:28 +00:00