Files
kjol/tools/tsgo/internal/api/transport_windows.go
2026-07-09 16:50:43 -04:00

20 lines
395 B
Go

//go:build windows
package api
import (
"net"
"github.com/Microsoft/go-winio"
)
// newPipeListener creates a Windows named pipe listener.
func newPipeListener(path string) (net.Listener, error) {
return winio.ListenPipe(path, nil)
}
// GeneratePipePath returns a platform-appropriate pipe path for the given name.
func GeneratePipePath(name string) string {
return `\\.\pipe\` + name
}