MCPcopy Index your code
hub / github.com/bugst/go-serial

github.com/bugst/go-serial @v1.7.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.7.1 ↗ · + Follow
214 symbols 451 edges 36 files 76 documented · 36%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Build Status

go.bug.st/serial

A cross-platform serial port library for Go.

Documentation and examples

See the package documentation here: https://pkg.go.dev/go.bug.st/serial

go.mod transition

This library supports go.mod with the import go.bug.st/serial.

If you came from the pre-go.mod era please update your import paths from go.bug.st/serial.v1 to go.bug.st/serial to receive updates. The latest v1 release is still available using the old import path.

Credits

:sparkles: Thanks to all awesome contributors! :sparkles:

License

This software is released under the BSD 3-clause license.

Extension points exported contracts — how you extend this code

Port (Interface)
go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go syscall_windows.go Port is the inte [2 …
serial.go

Core symbols most depended-on inside this repo

Close
called by 13
serial.go
Release
called by 11
enumerator/usb_darwin.go
readLine
called by 9
enumerator/usb_linux.go
Close
called by 6
serial_unix.go
Close
called by 5
serial_windows.go
Read
called by 5
serial.go
Open
called by 5
serial.go
usbHubDeviceIoControl
called by 5
enumerator/usb_windows.go

Shape

Method 101
Function 83
Struct 18
TypeAlias 11
Interface 1

Languages

Go100%

Modules by API surface

enumerator/usb_darwin.go44 symbols
enumerator/usb_windows.go30 symbols
serial.go25 symbols
serial_unix.go23 symbols
serial_windows.go17 symbols
enumerator/syscall_windows.go10 symbols
unixutils/select.go8 symbols
unixutils/pipe.go7 symbols
enumerator/usb_linux_test.go5 symbols
serial_darwin.go4 symbols
enumerator/usb_linux.go4 symbols
enumerator/enumerator.go4 symbols

For agents

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

⬇ download graph artifact