{"id":66748,"library":"smallnest-goframe","title":"GoFrame","description":"A Go library for framing network data using length-field-based encoding, inspired by Netty's LengthFieldBasedFrameDecoder.","status":"active","version":"1.0.0","language":"go","source_language":null,"source_url":"https://github.com/smallnest/goframe","tags":["networking","framing","length-field","decoder"],"install":[{"cmd":"go get github.com/smallnest/goframe","lang":"bash","label":"Install github.com/smallnest/goframe"}],"dependencies":[],"imports":[{"symbol":"goframe","correct":"github.com/smallnest/goframe"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/smallnest/goframe\"\n)\n\nfunc main() {\n\t// Create a frame decoder with a 4-byte length field at offset 0\n\tdecoder := goframe.NewLengthFieldBasedFrameDecoder(1024, 0, 4, 0, 4)\n\tdata := []byte{0x00, 0x00, 0x00, 0x05, 'h', 'e', 'l', 'l', 'o'}\n\tframes, err := decoder.Decode(data)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfor _, frame := range frames {\n\t\tfmt.Printf(\"Frame: %s\\n\", string(frame))\n\t}\n}","lang":"go","description":"Decodes a length-field-based frame from raw bytes."},"warnings":[],"env_vars":null,"search_vec":"'base':13 'data':8 'decod':25 'encod':14 'field':12,24 'frame':6,21 'go':3 'gofram':1 'inspir':15 'length':11,23 'length-field':22 'length-field-bas':10 'lengthfieldbasedframedecod':19 'librari':4 'netti':17 'network':7,20 'use':9","created_at":"2026-06-17T17:28:02.499181+00:00","updated_at":"2026-06-17T17:28:02.499181+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/smallnest/goframe","github":"https://github.com/smallnest/goframe","docs":"https://pkg.go.dev/github.com/smallnest/goframe#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking"],"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}}