{"id":42232327,"url":"https://github.com/xi163/gonet","last_synced_at":"2026-01-27T03:10:15.357Z","repository":{"id":276971445,"uuid":"590343542","full_name":"xi163/gonet","owner":"xi163","description":"gonet tcpserver/tcpclient , connpool , logs styles","archived":false,"fork":false,"pushed_at":"2023-10-10T02:35:10.000Z","size":1562,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-02T13:19:38.533Z","etag":null,"topics":["gonet","goroutine-pool","logger","logging","tcpclient","tcpserver"],"latest_commit_sha":null,"homepage":"","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/xi163.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":"2023-01-18T07:35:42.000Z","updated_at":"2025-02-11T13:15:02.000Z","dependencies_parsed_at":"2025-02-11T13:21:22.013Z","dependency_job_id":"347ca69c-a0de-476c-8e4a-14208e5d0592","html_url":"https://github.com/xi163/gonet","commit_stats":null,"previous_names":["cwloo/gonet"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xi163/gonet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xi163%2Fgonet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xi163%2Fgonet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xi163%2Fgonet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xi163%2Fgonet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xi163","download_url":"https://codeload.github.com/xi163/gonet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xi163%2Fgonet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28798662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T01:07:07.743Z","status":"online","status_checked_at":"2026-01-27T02:00:07.755Z","response_time":168,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["gonet","goroutine-pool","logger","logging","tcpclient","tcpserver"],"created_at":"2026-01-27T03:10:14.697Z","updated_at":"2026-01-27T03:10:15.352Z","avatar_url":"https://github.com/xi163.png","language":"Go","readme":"##### gonet go封装的tcp/websocket网络库\r\n\r\n###### `go mod download github.com/cwloo/gonet@latest`\r\n\r\n###### 1.`defer性能差禁用`\r\n###### 2.`字符串连接用strings.joins`\r\n###### 3.`用sync.Pool 避免频繁GC卡顿`\r\n###### 4.`定期手动GC，避免内存暴涨`\r\n###### 5.`slice内存泄漏避坑，goroutine泄漏避坑`\r\n###### 6.`减少锁调用，能避免则避免或用原子锁`\r\n###### 7.`使用goroutine池，频繁启动耗费cpu`\r\n###### 8.`尽量避免多个goroutine竞争访问共享资源`\r\n\r\n\r\n\r\n![image](https://github.com/cwloo/res_misc/blob/main/res/log.png)\r\n\r\n\r\n![image](https://github.com/cwloo/res_misc/blob/main/res/server.png)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxi163%2Fgonet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxi163%2Fgonet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxi163%2Fgonet/lists"}