tools/godoc/static
Peter Weinbergr 559c4300da tools: replace references to obsolete package ioutils
ioutil defines 7 functions. 6 of these are replaced by
functions in io or os with the same signature.
ReadDir is deprecated, but the suggested replacement has a different
signature.

These changes were generated by a program, with some manual adjutments.
The program replaces ReadDir with a call to a function named ioutilReadDir
that has the same signature. The code for this function
is added to files if necessary. The program replaces all the others
with their new versions. The program removes the 'io/ioutil' import
and adds, as necessary, 'os', 'io', and 'io/fs', the latter being
needed for the signature of ioutilReadDir.

The automatic process fails in a few ways:
1. ReadFile occurs only in a comment but the program adds an unneeded import.
2. ioutilReadDir is added to more than one file in the same package
Both of these could be viewed as bugs and fixed by looking harder.

After manual adjustment, two tests failed:
1. gopls/internal/lsp/regtesg/mis:TestGenerateProgress. The reason
	 was a use of ioutil in a txtar constant. The calls were changed,
	 but the code is not smart enough to change the import inside the
	 string constant. (Or it's not smart enough not to change the
	 contents of a string.)
2. gopls/internal/lsp/analysis/deprecated, which wants to see a use
	 of ioutil

These tests were adjused by hand, and all tests (-short) pass.

Change-Id: If9efe40bbb0edda36173d9a88afaf71245db8e79
Reviewed-on: https://go-review.googlesource.com/c/tools/+/527675
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Peter Weinberger <pjw@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2023-09-12 20:13:37 +00:00
..
analysis godoc/static: link to golang.org for content moved out of Go root 2021-03-30 17:48:30 +00:00
gopher godoc/static: add gopher/pkg.png image 2021-05-07 20:56:39 +00:00
images godoc/static: update jquery.treeview to 1.4.2 2020-03-12 15:35:18 +00:00
callgraph.html go.tools/godoc/static: indent with tabs. 2014-08-26 13:21:29 -07:00
dirlist.html go.tools/cmd: move static files into new package 'static' 2013-08-21 13:49:05 +10:00
doc.go tools: add import comments. 2014-12-09 22:42:16 +00:00
error.html go.tools/cmd: move static files into new package 'static' 2013-08-21 13:49:05 +10:00
example.html godoc: delete GoogleCN logic 2021-03-12 18:55:53 +00:00
favicon.ico godoc/static: link to golang.org for content moved out of Go root 2021-03-30 17:48:30 +00:00
gen.go tools: replace references to obsolete package ioutils 2023-09-12 20:13:37 +00:00
gen_test.go tools: replace references to obsolete package ioutils 2023-09-12 20:13:37 +00:00
godoc.html godoc/static: link to golang.org for content moved out of Go root 2021-03-30 17:48:30 +00:00
godocs.js all: run prettier on js and css 2020-05-28 15:31:44 +00:00
implements.html go.tools/godoc/static: indent with tabs. 2014-08-26 13:21:29 -07:00
jquery.js go.tools/cmd: move static files into new package 'static' 2013-08-21 13:49:05 +10:00
jquery.treeview.css godoc/static: update jquery.treeview to 1.4.2 2020-03-12 15:35:18 +00:00
jquery.treeview.edit.js godoc/static: update jquery.treeview to 1.4.2 2020-03-12 15:35:18 +00:00
jquery.treeview.js godoc/static: update jquery.treeview to 1.4.2 2020-03-12 15:35:18 +00:00
makestatic.go tools: replace references to obsolete package ioutils 2023-09-12 20:13:37 +00:00
methodset.html go.tools/godoc/static: indent with tabs. 2014-08-26 13:21:29 -07:00
package.html godoc: support go1.19 doc comment syntax 2022-07-19 22:18:38 +00:00
packageroot.html godoc/static: add gopher/pkg.png image 2021-05-07 20:56:39 +00:00
play.js present: fix newline parsing for go present 2020-09-03 15:36:55 +00:00
playground.js playground: remove /share registration, add Proxy 2021-02-25 15:03:53 +00:00
search.html godoc: generate TOC from server-side for search page 2018-10-19 20:12:13 +00:00
searchcode.html godoc: Add package identifiers to documentation indexing. 2014-01-06 13:26:25 -05:00
searchdoc.html godoc: support go1.19 doc comment syntax 2022-07-19 22:18:38 +00:00
searchtxt.html godoc: add ability to change or disable the display of search results. 2014-01-06 09:51:01 -05:00
static.go godoc: support go1.19 doc comment syntax 2022-07-19 22:18:38 +00:00
style.css godoc/static: add gopher/pkg.png image 2021-05-07 20:56:39 +00:00