{"id":18773904,"url":"https://github.com/ejunjsh/nettyg","last_synced_at":"2025-11-04T22:02:44.629Z","repository":{"id":46545690,"uuid":"98303875","full_name":"ejunjsh/nettyG","owner":"ejunjsh","description":"a netty-like framework with go","archived":false,"fork":false,"pushed_at":"2017-09-18T03:03:21.000Z","size":37,"stargazers_count":14,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T00:54:55.133Z","etag":null,"topics":[],"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/ejunjsh.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}},"created_at":"2017-07-25T12:30:00.000Z","updated_at":"2024-07-09T09:50:12.000Z","dependencies_parsed_at":"2022-09-03T22:20:30.352Z","dependency_job_id":null,"html_url":"https://github.com/ejunjsh/nettyG","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejunjsh%2FnettyG","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejunjsh%2FnettyG/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejunjsh%2FnettyG/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejunjsh%2FnettyG/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ejunjsh","download_url":"https://codeload.github.com/ejunjsh/nettyG/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248689104,"owners_count":21145883,"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:36:14.949Z","updated_at":"2025-11-04T22:02:39.596Z","avatar_url":"https://github.com/ejunjsh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nettyG\n[![Build Status](https://travis-ci.org/ejunjsh/nettyG.svg?branch=master)](https://travis-ci.org/ejunjsh/nettyG)\n\na simple netty-like network framework.\n````go\nNewBootstrap().Handler(func(channel *Channel) {\n\t\t\tchannel.Pipeline().\n\t\t\t\tAddLast(NewLineCodec(\"\\r\\n\\r\\n\")).\n\t\t\t\tAddLast(NewStringCodec()).\n\t\t\t\tAddLast(ChannelActiveFunc(func(context *HandlerContext) error {\n\t\t\t\tcontext.WriteAndFlush(\"hello nettyG\")\n\t\t\t\treturn nil\n\t\t\t})).AddLast(ChannelReadFunc(func(context *HandlerContext, data interface{}) error {\n\t\t\t\tif d,ok:=data.(string);ok{\n\t\t\t\t\tcontext.Write(d)\n\t\t\t\t}\n\t\t\t\treturn nil\n\t\t\t}))\n\t\t}).RunServer(\"tcp\",\":8981\")\n````\n\nbenchmark\nnettyG vs go standard lib\n````bash\n$ cd bench\n$ go test -bench .\ntcp listen on :8981\nBenchmarkGostd-8           10000            123746 ns/op\nBenchmarkNettyG-8          10000            134753 ns/op\nPASS\nok      github.com/ejunjsh/nettyG       2.623s\n\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejunjsh%2Fnettyg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fejunjsh%2Fnettyg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejunjsh%2Fnettyg/lists"}