MCPcopy Index your code
hub / github.com/Netflix/go-expect

github.com/Netflix/go-expect @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
103 symbols 348 edges 11 files 59 documented · 57% 11 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…

Extension points exported contracts — how you extend this code

Matcher (Interface)
Matcher provides an interface for finding a match in content read from Console's tty. [6 implementers]
expect_opt.go
ConsoleOpt (FuncType)
ConsoleOpt allows setting Console options.
console.go
CallbackMatcher (Interface)
CallbackMatcher is a matcher that provides a Callback function. [1 implementers]
expect_opt.go
ExpectObserver (FuncType)
ExpectObserver provides an interface for a function callback that will be called after each Expect operation. matchers w
console.go
ExpectOpt (FuncType)
ExpectOpt allows settings Expect options.
expect_opt.go
SendObserver (FuncType)
SendObserver provides an interface for a function callback that will be called after each Send operation. msg is the str
console.go
ConsoleCallback (FuncType)
ConsoleCallback is a callback function to execute if a match is found for the chained matcher.
expect_opt.go

Core symbols most depended-on inside this repo

Tty
called by 32
console.go
String
called by 25
expect_opt.go
All
called by 10
expect_opt.go
SendLine
called by 10
console.go
ExpectString
called by 9
expect.go
Close
called by 9
console.go
Match
called by 8
expect_opt.go
ExpectEOF
called by 7
expect.go

Shape

Function 45
Method 37
Struct 14
FuncType 5
Interface 2

Languages

Go100%

Modules by API surface

expect_opt.go37 symbols
console.go22 symbols
expect_test.go15 symbols
reader_lease.go6 symbols
expect_opt_test.go6 symbols
test_log.go5 symbols
passthrough_pipe.go5 symbols
expect.go4 symbols
passthrough_pipe_test.go2 symbols
reader_lease_test.go1 symbols

For agents

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

⬇ download graph artifact