Skip to content

Commit c00babd

Browse files
committed
Merge branch 'master' into inflate-improve-speed
# Conflicts: # src/compress/flate/reader_test.go
2 parents 6180f3c + 95b68e1 commit c00babd

File tree

8,218 files changed

+747190
-478327
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

8,218 files changed

+747190
-478327
lines changed

.gitattributes

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# Treat all files in the Go repo as binary, with no git magic updating
2-
# line endings. Windows users contributing to Go will need to use a
3-
# modern version of git and editors capable of LF line endings.
2+
# line endings. This produces predictable results in different environments.
3+
#
4+
# Windows users contributing to Go will need to use a modern version
5+
# of git and editors capable of LF line endings.
6+
#
7+
# Windows .bat files are known to have multiple bugs when run with LF
8+
# endings, and so they are checked in with CRLF endings, with a test
9+
# in test/winbatch.go to catch problems. (See golang.org/issue/37791.)
410
#
511
# We'll prevent accidental CRLF line endings from entering the repo
6-
# via the git-review gofmt checks.
12+
# via the git-codereview gofmt checks and tests.
713
#
8-
# See golang.org/issue/9281
14+
# See golang.org/issue/9281.
915

1016
* -text
11-
12-
# The only exception is Windows files that must absolutely be CRLF or
13-
# might not work. Batch files are known to have multiple bugs when run
14-
# with LF endings. See golang.org/issue/37791 for more information.
15-
16-
*.bat text eol=crlf

.github/ISSUE_TEMPLATE

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/00-bug.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
name: Bugs
3+
about: The go command, standard library, or anything else
4+
title: "affected/package: "
5+
---
6+
7+
<!--
8+
Please answer these questions before submitting your issue. Thanks!
9+
-->
10+
11+
### What version of Go are you using (`go version`)?
12+
13+
<pre>
14+
$ go version
15+
16+
</pre>
17+
18+
### Does this issue reproduce with the latest release?
19+
20+
21+
22+
### What operating system and processor architecture are you using (`go env`)?
23+
24+
<details><summary><code>go env</code> Output</summary><br><pre>
25+
$ go env
26+
27+
</pre></details>
28+
29+
### What did you do?
30+
31+
<!--
32+
If possible, provide a recipe for reproducing the error.
33+
A complete runnable program is good.
34+
A link on go.dev/play is best.
35+
-->
36+
37+
38+
39+
### What did you expect to see?
40+
41+
42+
43+
### What did you see instead?
44+
45+

.github/ISSUE_TEMPLATE/01-pkgsite.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
name: Pkg.go.dev bugs or feature requests
3+
about: Issues or feature requests for the documentation site
4+
title: "x/pkgsite: "
5+
labels: pkgsite
6+
---
7+
8+
<!--
9+
Please answer these questions before submitting your issue. Thanks!
10+
-->
11+
12+
### What is the URL of the page with the issue?
13+
14+
15+
16+
### What is your user agent?
17+
18+
<!--
19+
You can find your user agent here:
20+
https://www.google.com/search?q=what+is+my+user+agent
21+
-->
22+
23+
24+
25+
### Screenshot
26+
27+
<!--
28+
Please paste a screenshot of the page.
29+
-->
30+
31+
32+
33+
### What did you do?
34+
35+
<!--
36+
If possible, provide a recipe for reproducing the error.
37+
-->
38+
39+
40+
41+
### What did you expect to see?
42+
43+
44+
45+
### What did you see instead?
46+
47+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
name: Pkg.go.dev package removal request
3+
about: Request a package be removed from the documentation site (pkg.go.dev)
4+
title: "x/pkgsite: package removal request for [type path here]"
5+
labels: pkgsite
6+
---
7+
8+
<!--
9+
Please answer these questions before submitting your issue. Thanks!
10+
-->
11+
12+
### What is the path of the package that you would like to have removed?
13+
14+
<!---
15+
We can remove packages with a shared path prefix.
16+
For example, a request for "github.com/author" would remove all pkg.go.dev pages with that package path prefix.
17+
--->
18+
19+
20+
21+
### Are you the owner of this package?
22+
23+
<!---
24+
Only the package owners can request to have their packages removed from pkg.go.dev.
25+
--->
26+
27+
28+
29+
### What is the reason that you could not retract this package instead?
30+
31+
<!---
32+
If you would like to have your module removed from pkg.go.dev, we recommend that you retract them, so that they can be removed from the go command and proxy.golang.org as well.
33+
34+
Retracting a module version involves adding a retract directive to your go.mod file and publishing a new version. For example: https://github.com/jba/retract-demo/blob/main/go.mod#L5-L8
35+
36+
See https://pkg.go.dev/about#removing-a-package for additional tips on retractions.
37+
--->
38+
39+

.github/ISSUE_TEMPLATE/03-gopls.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
name: Gopls bugs or feature requests
3+
about: Issues or feature requests for the Go language server (gopls)
4+
title: "x/tools/gopls: "
5+
labels: gopls Tools
6+
---
7+
8+
<!--
9+
Please answer these questions before submitting your issue. Thanks!
10+
-->
11+
12+
### gopls version
13+
14+
<!--
15+
Output of `gopls -v version` on the command line
16+
-->
17+
18+
19+
20+
### go env
21+
22+
<!--
23+
Output of `go env` on the command line in your workspace directory
24+
-->
25+
26+
27+
### What did you do?
28+
29+
<!--
30+
If possible, provide a recipe for reproducing the error.
31+
A complete runnable program is good.
32+
A link on go.dev/play is better.
33+
A failing unit test is the best.
34+
-->
35+
36+
37+
38+
### What did you expect to see?
39+
40+
41+
42+
### What did you see instead?
43+
44+
45+
46+
### Editor and settings
47+
48+
<!--
49+
Your editor and any settings you have configured (for example, your VSCode settings.json file)
50+
-->
51+
52+
53+
54+
### Logs
55+
56+
<!--
57+
If possible please include gopls logs. Instructions for capturing them can be found here:
58+
https://github.com/golang/tools/blob/master/gopls/doc/troubleshooting.md#capture-logs
59+
-->
60+
61+

.github/ISSUE_TEMPLATE/10-proposal.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Proposals
3+
about: New external API or other notable changes
4+
title: "proposal: affected/package: "
5+
labels: Proposal
6+
---
7+
8+
<!--
9+
Our proposal process is documented here:
10+
https://go.dev/s/proposal-process
11+
-->
12+
13+
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
name: Language Change Proposals
3+
about: Changes to the language
4+
title: "proposal: Go 2: "
5+
labels: Proposal Go2 LanguageChange
6+
---
7+
8+
<!--
9+
Our process for evaluating language changes can be found here:
10+
https://go.googlesource.com/proposal/+/refs/heads/master#language-changes
11+
-->
12+
13+
### Author background
14+
15+
- **Would you consider yourself a novice, intermediate, or experienced Go programmer?**
16+
- **What other languages do you have experience with?**
17+
18+
### Related proposals
19+
20+
- **Has this idea, or one like it, been proposed before?**
21+
- **If so, how does this proposal differ?**
22+
- **Does this affect error handling?**
23+
- **If so, how does this differ from previous error handling proposals?**
24+
- **Is this about generics?**
25+
- **If so, how does this relate to the accepted design and other generics proposals?**
26+
27+
### Proposal
28+
29+
- **What is the proposed change?**
30+
- **Who does this proposal help, and why?**
31+
- **Please describe as precisely as possible the change to the language.**
32+
- **What would change in the language spec?**
33+
- **Please also describe the change informally, as in a class teaching Go.**
34+
- **Is this change backward compatible?**
35+
- Breaking the Go 1 compatibility guarantee is a large cost and requires a large benefit.
36+
Show example code before and after the change.
37+
- **Before**
38+
- **After**
39+
- **Orthogonality: how does this change interact or overlap with existing features?**
40+
- **Is the goal of this change a performance improvement?**
41+
- **If so, what quantifiable improvement should we expect?**
42+
- **How would we measure it?**
43+
44+
### Costs
45+
46+
- **Would this change make Go easier or harder to learn, and why?**
47+
- **What is the cost of this proposal? (Every language change has a cost).**
48+
- **How many tools (such as vet, gopls, gofmt, goimports, etc.) would be affected?**
49+
- **What is the compile time cost?**
50+
- **What is the run time cost?**
51+
- **Can you describe a possible implementation?**
52+
- **Do you have a prototype? (This is not required.)**

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Questions
4+
about: Please use one of the forums for questions or general discussions
5+
url: https://go.dev/wiki/Questions

.github/SUPPORT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ For asking questions, see:
1111

1212
* [Stack Overflow](https://stackoverflow.com/questions/tagged/go) with questions tagged "go"
1313

14-
* **IRC** channel #go-nuts on Freenode
14+
* **IRC** channel #go-nuts on Libera

0 commit comments

Comments
 (0)