{"id":76644,"library":"tailscale-goexpect","title":"goexpect","description":"A Go implementation of the classic TCL Expect library for automating interactive terminal applications.","status":"active","version":"0.0.0-20210902213824-6e8c725cea41","language":"go","source_language":null,"source_url":"https://github.com/tailscale/goexpect","tags":["expect","automation","ssh","testing","terminal"],"install":[{"cmd":"go get github.com/tailscale/goexpect","lang":"bash","label":"Install github.com/tailscale/goexpect"}],"dependencies":[],"imports":[{"symbol":"expect","correct":"github.com/tailscale/goexpect"}],"quickstart":{"code":"package main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"github.com/tailscale/goexpect\"\n)\n\nfunc main() {\n\te, _, err := expect.Spawn(\"ssh\", 30*time.Second, \"user@host\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer e.Close()\n\te.Expect(\"password:\", 10*time.Second)\n\te.Send(\"mypassword\\n\")\n\tresult, _, _ := e.Expect(\"$\", 10*time.Second)\n\tfmt.Println(result)\n}","lang":"go","description":"Spawn an SSH session and automate login"},"warnings":[],"env_vars":null,"search_vec":"'applic':15 'autom':12,17 'classic':7 'expect':9,16 'go':3 'goexpect':1 'implement':4 'interact':13 'librari':10 'ssh':18 'tcl':8 'termin':14,20 'test':19","created_at":"2026-06-17T19:34:50.974856+00:00","updated_at":"2026-06-17T19:34:50.974856+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/tailscale/goexpect","github":"https://github.com/tailscale/goexpect","docs":"https://pkg.go.dev/github.com/tailscale/goexpect#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing","utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}