MCPcopy Index your code
hub / github.com/golang/sys

github.com/golang/sys @v0.46.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.46.0 ↗ · + Follow
11,506 symbols 28,115 edges 485 files 5,915 documented · 51% 1,612 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

sys

Go Reference

This repository holds supplemental Go packages for low-level interactions with the operating system.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://go.dev/doc/contribute.

The git repository is https://go.googlesource.com/sys.

The main issue tracker for the sys repository is located at https://go.dev/issues. Prefix your issue with "x/sys:" in the subject line, so it is easy to find.

Extension points exported contracts — how you extend this code

Sockaddr (Interface)
Sockaddr represents a socket address. [26 implementers]
unix/syscall_zos_s390x.go
Sockaddr (Interface)
Sockaddr represents a socket address. [26 implementers]
unix/syscall_unix.go
Sockaddr (Interface)
(no doc) [26 implementers]
windows/syscall_windows.go
TIPCAddr (Interface)
TIPCAddr is implemented by types that can be used as an address for SockaddrTIPC. It is only implemented by *TIPCSocketA [3 …
unix/syscall_linux.go
Log (Interface)
Log interface allows different log implementations to be used. [2 implementers]
windows/svc/debug/log.go
ResourceIDOrString (Interface)
ResourceIDOrString must be either a ResourceID, to specify a resource or resource type by ID, or a string, to specify a
windows/types_windows.go
Handler (Interface)
Handler is the interface that must be implemented to build Windows service. [1 implementers]
windows/svc/service.go

Core symbols most depended-on inside this repo

Errno
called by 3866
windows/syscall_windows.go
errnoErr
called by 3660
unix/syscall_unix.go
BytePtrFromString
called by 1447
unix/syscall.go
Syscall
called by 1215
unix/gccgo.go
Signal
called by 1130
unix/syscall_bsd.go
syscall_syscall
called by 789
unix/syscall_openbsd_libc.go
Syscall6
called by 663
unix/gccgo.go
Addr
called by 514
windows/dll_windows.go

Shape

Function 7,329
Struct 2,570
TypeAlias 960
Method 637
Interface 8
Class 1
FuncType 1

Languages

Go100%
C1%

Modules by API surface

windows/zsyscall_windows.go513 symbols
unix/zsyscall_zos_s390x.go315 symbols
unix/linux/types.go252 symbols
unix/syscall_zos_s390x.go221 symbols
unix/syscall_linux.go205 symbols
unix/ztypes_linux.go187 symbols
windows/syscall_windows.go166 symbols
unix/zsyscall_linux.go163 symbols
windows/types_windows.go159 symbols
unix/zsyscall_darwin_arm64.go159 symbols
unix/zsyscall_darwin_amd64.go159 symbols
unix/zsyscall_solaris_amd64.go149 symbols

For agents

$ claude mcp add sys \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact