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

Struct GopherTerminal

structural/proxy/main.go:42–45  ·  view source on GitHub ↗

GopherTerminal for example: Its a "huge" structure with different public methods

Source from the content-addressed store, hash-verified

40// GopherTerminal for example:
41// Its a "huge" structure with different public methods
42type GopherTerminal struct {
43 // user is a current authorized user
44 User string
45}
46
47// Execute just runs known commands for current authorized user
48func (gt *GopherTerminal) Execute(cmd string) (resp string, err error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected