{"id":17654743,"url":"https://github.com/lujjjh/go-javaio","last_synced_at":"2025-07-08T07:14:07.385Z","repository":{"id":85069451,"uuid":"190003076","full_name":"lujjjh/go-javaio","owner":"lujjjh","description":"Go implementation of Java Object Serialization Stream Protocol.","archived":false,"fork":false,"pushed_at":"2020-06-18T09:46:12.000Z","size":92,"stargazers_count":8,"open_issues_count":1,"forks_count":4,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-07T09:15:43.705Z","etag":null,"topics":["go","golang","java","serialization"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lujjjh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-06-03T12:42:02.000Z","updated_at":"2024-01-31T05:27:25.000Z","dependencies_parsed_at":"2023-03-03T01:00:32.807Z","dependency_job_id":null,"html_url":"https://github.com/lujjjh/go-javaio","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lujjjh%2Fgo-javaio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lujjjh%2Fgo-javaio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lujjjh%2Fgo-javaio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lujjjh%2Fgo-javaio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lujjjh","download_url":"https://codeload.github.com/lujjjh/go-javaio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252847524,"owners_count":21813458,"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":["go","golang","java","serialization"],"created_at":"2024-10-23T12:36:01.141Z","updated_at":"2025-05-07T09:15:53.900Z","avatar_url":"https://github.com/lujjjh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-javaio\n\n## Get Started\n\n```sh\ngo get github.com/lujjjh/go-javaio/...\n```\n\n`struct`s to be serialized must implements `ClassName() string` method\nwhich returns the Java class name.\n\nOptionally, `SerialVersionUID() int64` may be implemented if you want to\nspecify the serialVersionUID of the class.\n\nFor example, define a `List` struct:\n\n```go\ntype List struct {\n\tValue int32\n\tNext  *List\n}\n\nfunc (*List) ClassName() string {\n\treturn \"List\"\n}\n\nfunc (*List) SerialVersionUID() int64 {\n\treturn 1\n}\n```\n\nCreate `List` instances and serialize them:\n\n```go\nlist2 := \u0026List{\n    Value: 19,\n}\nlist1 := \u0026List{\n    Value: 17,\n    Next:  list2,\n}\n\nvar buf bytes.Buffer\nw, _ := NewStreamWriter(\u0026buf)\nw.writeObject(list1)\nw.writeObject(list2)\n```\n\nThe resulting buffer contains:\n\n```go\n00000000  ac ed 00 05 73 72 00 04  4c 69 73 74 00 00 00 00  |....sr..List....|\n00000010  00 00 00 01 02 00 02 49  00 05 76 61 6c 75 65 4c  |.......I..valueL|\n00000020  00 04 6e 65 78 74 74 00  06 4c 4c 69 73 74 3b 78  |..nextt..LList;x|\n00000030  70 00 00 00 11 73 71 00  7e 00 00 00 00 00 13 70  |p....sq.~......p|\n00000040  71 00 7e 00 03                                    |q.~..|\n```\n\n## Features\n\n- [x] Serialization\n- [x] Deserialization\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flujjjh%2Fgo-javaio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flujjjh%2Fgo-javaio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flujjjh%2Fgo-javaio/lists"}