{"id":37225989,"url":"https://github.com/gnolizuh/gamf","last_synced_at":"2026-01-15T01:51:34.132Z","repository":{"id":219056938,"uuid":"748047480","full_name":"gnolizuh/gamf","owner":"gnolizuh","description":"gamf implements encoding and decoding of AMF based on Go.","archived":false,"fork":false,"pushed_at":"2024-03-21T08:18:41.000Z","size":113,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T14:48:19.851Z","etag":null,"topics":["adobe","amf","amf0","amf3","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gnolizuh.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":"2024-01-25T06:51:25.000Z","updated_at":"2024-03-21T08:20:14.000Z","dependencies_parsed_at":"2024-01-25T08:26:38.549Z","dependency_job_id":"5aeca415-96a7-40c5-bd9a-c7d6c60fc87c","html_url":"https://github.com/gnolizuh/gamf","commit_stats":null,"previous_names":["gnolizuh/gamf"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gnolizuh/gamf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnolizuh%2Fgamf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnolizuh%2Fgamf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnolizuh%2Fgamf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnolizuh%2Fgamf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gnolizuh","download_url":"https://codeload.github.com/gnolizuh/gamf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnolizuh%2Fgamf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28441031,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:55:22.719Z","status":"ssl_error","status_checked_at":"2026-01-15T00:55:20.945Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["adobe","amf","amf0","amf3","golang"],"created_at":"2026-01-15T01:51:33.624Z","updated_at":"2026-01-15T01:51:34.124Z","avatar_url":"https://github.com/gnolizuh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"English | [中文](README.zh_CN.md)\n\n# gamf\n\nBest open source lib of **AMF** serialization and deserialization based on Go.\n\n# Features\n\n- Usage exactly similar to std.json\n- Flexible customization with options\n- More compatible, we supported both AMF0 \u0026 AMF3\n\n# Installation\n\n```\ngo get github.com/gnolizuh/gamf\n```\n\n# How to use\n\n## Integer\n\n### AMF0\n\n```\nin := 1\nbs, _ := Marshal(\u0026in)\n\nvar out int\nUnmarshal(bs, \u0026out)\n```\n\n### AMF3\n\n```\nvar bs []byte\nbuf := bytes.NewBuffer(bs)\n\nin := 1\nNewEncoder().WithWriter(buf).Encode(\u0026in)\n\nvar out int\nNewDecoder().WithReader(buf).Decode(\u0026out)\n```\n\n## Float\n\n### AMF0\n\n```\nin := 1.0\nbs, _ := Marshal(\u0026in)\n\nvar out float64\nUnmarshal(bs, \u0026out)\n```\n\n### AMF3\n\n```\nvar bs []byte\nbuf := bytes.NewBuffer(bs)\n\nin := 1\nNewEncoder().WithWriter(buf).WithVersion(Version3).Encode(\u0026in)\n\nvar out int\nNewDecoder().WithReader(buf).WithVersion(Version3).Decode(\u0026out)\n```\n\n## String\n\n### AMF0\n\n```\nin := \"1\"\nbs, _ := Marshal(\u0026in)\n\nvar out string\nUnmarshal(bs, \u0026out)\n```\n\n### AMF3\n\n```\nvar bs []byte\nbuf := bytes.NewBuffer(bs)\n\nin := \"1\"\nNewEncoder().WithWriter(buf).WithVersion(Version3).Encode(\u0026in)\n\nvar out string\nNewDecoder().WithReader(buf).WithVersion(Version3).Decode(\u0026out)\n```\n\n## Bool\n\n### AMF0\n\n```\nin := \"1\"\nbs, _ := Marshal(\u0026in)\n\nvar out string\nUnmarshal(bs, \u0026out)\n```\n\n### AMF3\n\n```\nvar bs []byte\nbuf := bytes.NewBuffer(bs)\n\nin := true\nNewEncoder().WithWriter(buf).WithVersion(Version3).Encode(\u0026in)\n\nout := false\nNewDecoder().WithReader(buf).WithVersion(Version3).Decode(\u0026out)\n```\n\n## Slice\n\n### AMF0\n\n```\nin := []int{1, 2, 3}\nbs, _ := Marshal(\u0026in)\n\nvar out []int\nUnmarshal(bs, \u0026out)\n```\n\n### AMF3\n\n```\nvar bs []byte\nbuf := bytes.NewBuffer(bs)\n\nin := []any{1.0, \"1\", true, map[string]any{\"Int\": 1.0, \"String\": \"1\", \"Bool\": true}}\nNewEncoder().WithWriter(buf).WithVersion(Version3).Encode(\u0026in)\n\nout := []any{0.0, \"0\", false, map[string]any{}}\nNewDecoder().WithReader(buf).WithVersion(Version3).Decode(\u0026out)\n```\n\n## Struct\n\n### Struct to Struct\n\n```\ntype Struct struct {\n    Int    int    `amf:\"tag_int\"`\n    String string `amf:\"tag_string\"`\n    Bool   bool   `amf:\"tag_bool\"`\n    Object struct {\n        Int    int    `amf:\"tag_int\"`\n        String string `amf:\"tag_string\"`\n        Bool   bool   `amf:\"tag_bool\"`\n    } `amf:\"tag_object\"`\n}\n\nin := Struct{} // with value be initialized\nbs, _ := Marshal(\u0026in)\n\nout := Struct{}\nUnmarshal(bs, \u0026out)\n```\n\n### Struct to Map\n\n```\ntype Struct struct {\n    Int    int    `amf:\"tag_int\"`\n    String string `amf:\"tag_string\"`\n    Bool   bool   `amf:\"tag_bool\"`\n    Object struct {\n        Int    int    `amf:\"tag_int\"`\n        String string `amf:\"tag_string\"`\n        Bool   bool   `amf:\"tag_bool\"`\n    } `amf:\"tag_object\"`\n}\n\nin := Struct{} // with value be initialized\nbs, _ := Marshal(\u0026in)\n\nout := make(map[string]any)\nUnmarshal(bs, \u0026out)\n```\n\n## Map\n\n```\nin := map[string]any{\"Int\": 1.0, \"String\": \"1\", \"Bool\": true}\nbs, _ := Marshal(\u0026in)\n\nout := make(map[string]any)\nUnmarshal(bs, \u0026out)\n```\n\n# Reference\n\n- https://rtmp.veriskope.com/pdf/amf0-file-format-specification.pdf\n- https://rtmp.veriskope.com/pdf/amf3-file-format-spec.pdf","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnolizuh%2Fgamf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgnolizuh%2Fgamf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnolizuh%2Fgamf/lists"}