The Go programming language
Go to file
Zeke Lu f0e594bdb3 syscall: make use of StartupInfo.Reserved2 on Windows
On Windows, some applications (for example, Chromium) use
_get_osfhandle to retrieve additional open files inherited from
its parent process. This C Runtime function requires the parent
process to pass the information about the inherited file
descriptors in the field StartupInfo.Reserved2. This field is
not in use as of now; and making use of it is supposed to not
break anything.

The MSDN just states that the field is "Reserved for use by the
C Run-time". The implementation is found in these projects:
nodejs: https://github.com/nodejs/node/blob/71691e53/deps/uv/src/win/process-stdio.c#L32-L37
ReactOS: https://github.com/reactos/reactos/blob/57c84dd6/sdk/lib/crt/stdio/file.c#L405-L532
2022-07-06 08:47:46 +08:00
.github .github: remove duplicate security link 2022-01-07 17:55:09 +00:00
api debug/pe: add IMAGE_FILE_MACHINE_LOONGARCH{64,32} 2022-06-29 22:29:34 +00:00
doc spec: retitle section on "Assignments" to "Assignment statements" 2022-06-30 00:58:41 +00:00
lib/time lib/time, time/tzdata: update to 2022a 2022-05-31 08:53:53 +00:00
misc cmd/internal/obj/arm64: save LR and SP in one instruction for small frames 2022-06-29 22:26:58 +00:00
src syscall: make use of StartupInfo.Reserved2 on Windows 2022-07-06 08:47:46 +08:00
test cmd/compile: fix prove pass when upper condition is <= maxint 2022-06-30 15:11:19 +00:00
.gitattributes all: treat all files as binary, but check in .bat with CRLF 2020-06-08 15:31:43 +00:00
.gitignore internal/buildcfg: move build configuration out of cmd/internal/objabi 2021-04-16 19:20:53 +00:00
AUTHORS A+C: add Jinzhu Zhang 2022-05-08 17:28:26 +00:00
CONTRIBUTING.md
CONTRIBUTORS A+C: add Jinzhu Zhang 2022-05-08 17:28:26 +00:00
LICENSE
PATENTS
README.md README.md: update wiki link 2022-04-26 16:21:18 +00:00
SECURITY.md SECURITY.md: replace golang.org with go.dev 2022-04-26 19:59:47 +00:00
codereview.cfg codereview.cfg: add codereview.cfg for master branch 2021-02-19 18:44:53 +00:00

README.md

The Go Programming Language

Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.

Gopher image Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.

Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.

Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.

Download and Install

Binary Distributions

Official binary distributions are available at https://go.dev/dl/.

After downloading a binary release, visit https://go.dev/doc/install for installation instructions.

Install From Source

If a binary distribution is not available for your combination of operating system and architecture, visit https://go.dev/doc/install/source for source installation instructions.

Contributing

Go is the work of thousands of contributors. We appreciate your help!

To contribute, please read the contribution guidelines at https://go.dev/doc/contribute.

Note that the Go project uses the issue tracker for bug reports and proposals only. See https://go.dev/wiki/Questions for a list of places to ask questions about the Go language.