{"id":18776004,"url":"https://github.com/way29/cake","last_synced_at":"2025-12-15T05:30:14.851Z","repository":{"id":135491871,"uuid":"319531395","full_name":"WAY29/cake","owner":"WAY29","description":"A cake for for connect local file or socket Written by golang","archived":false,"fork":false,"pushed_at":"2022-09-15T05:08:42.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-29T09:25:26.457Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WAY29.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-08T05:02:36.000Z","updated_at":"2022-09-15T05:08:47.000Z","dependencies_parsed_at":"2023-05-16T07:00:23.410Z","dependency_job_id":null,"html_url":"https://github.com/WAY29/cake","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WAY29%2Fcake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WAY29%2Fcake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WAY29%2Fcake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WAY29%2Fcake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WAY29","download_url":"https://codeload.github.com/WAY29/cake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239683590,"owners_count":19679987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T19:44:29.331Z","updated_at":"2025-12-15T05:30:14.746Z","avatar_url":"https://github.com/WAY29.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cake\n***A cake for for connect local file or socket***\n\n## Depends\n  - emperror.dev/errors v0.8.0\n  - github.com/jawher/mow.cli v1.2.0\n\n## Usage\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/WAY29/cake/api\"\n)\n\nfunc main() {\n\tc := api.Connect(\"./test.exe\")  // local file\n\t// c := api.Connect(\"1.1.1.1:2333\")  // remote socket\n\tn, data := c.Recv(100, 10)  // recvnumber, timeout\n\tif n \u003e 0 {\n\t\tfmt.Print(string(data))\n  }\n  //n, err := c.Sendline([]byte(\"qwe\"))  // send data\n\tn, err := c.Sendline([]byte(\"qwe\"))  // send data with '\\n'\n\tif err != nil {\n\t\tfmt.Println(\"error\", err)\n\t}\n\n\tdata = c.Recvuntil([]byte(\"we\"), true)  // recv data until bytes, drops utilsbytes if set true\n    fmt.Print(string(data))\n    c.InteractiveR()  // interactive with it, use :r to reconnect, :exit to exit\n\tc.Close()  // close connect\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fway29%2Fcake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fway29%2Fcake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fway29%2Fcake/lists"}