MCPcopy
hub / github.com/tmrts/go-patterns / ITerminal

Interface ITerminal

structural/proxy/main.go:36–38  ·  view source on GitHub ↗

* From that it's can be different terminals realizations with different methods, propertys, yda yda... */ ITerminal is interface, it's a public method whose implemented in Terminal(Proxy) and Gopher Terminal

Source from the content-addressed store, hash-verified

34
35// ITerminal is interface, it's a public method whose implemented in Terminal(Proxy) and Gopher Terminal
36type ITerminal interface {
37 Execute(cmd string) (resp string, err error)
38}
39
40// GopherTerminal for example:
41// Its a "huge" structure with different public methods

Callers 1

ExecuteMethod · 0.65

Implementers 2

GopherTerminalstructural/proxy/main.go
Terminalstructural/proxy/main.go

Calls

no outgoing calls

Tested by

no test coverage detected