{"id":28396324,"url":"https://github.com/ssbc/go-bipf","last_synced_at":"2025-10-08T02:07:05.230Z","repository":{"id":143000725,"uuid":"614567560","full_name":"ssbc/go-bipf","owner":"ssbc","description":"Go implementation of BIPF format (Binary In-Place Format format)","archived":false,"fork":false,"pushed_at":"2023-03-17T00:36:00.000Z","size":67,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-17T00:54:16.855Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/ssbc/bipf-spec","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/ssbc.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}},"created_at":"2023-03-15T21:18:06.000Z","updated_at":"2023-03-22T07:13:42.000Z","dependencies_parsed_at":"2024-03-17T02:13:57.472Z","dependency_job_id":"c3873ee6-cd24-49f7-bc30-6f0fcef7073b","html_url":"https://github.com/ssbc/go-bipf","commit_stats":null,"previous_names":["boreq/go-bipf"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ssbc/go-bipf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbc%2Fgo-bipf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbc%2Fgo-bipf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbc%2Fgo-bipf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbc%2Fgo-bipf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ssbc","download_url":"https://codeload.github.com/ssbc/go-bipf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssbc%2Fgo-bipf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278877092,"owners_count":26061381,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"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":[],"created_at":"2025-05-31T21:37:56.121Z","updated_at":"2025-10-08T02:07:05.225Z","avatar_url":"https://github.com/ssbc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-bipf [![CI](https://github.com/boreq/go-bipf/actions/workflows/ci.yml/badge.svg)](https://github.com/boreq/go-bipf/actions/workflows/ci.yml) [![Go Reference](https://pkg.go.dev/badge/github.com/boreq/go-bipf.svg)](https://pkg.go.dev/github.com/boreq/go-bipf)\n\nThis a Go implementation of the [BIPF format][spec] (Binary In-Place Format\nformat) based on [`github.com/json-iterator/go`][jsoniter].\n\n## Examples\n\n### Marshal\n\n    import (\n        \"encoding/hex\"\n        \"fmt\"\n        \"github.com/boreq/go-bipf\"\n    )\n\n    func ExampleMarshal() {\n        type ColorGroup struct {\n            ID     int\n            Name   string\n            Colors []string\n        }\n\n        group := ColorGroup{\n            ID:     1,\n            Name:   \"Reds\",\n            Colors: []string{\"Crimson\", \"Red\", \"Ruby\", \"Maroon\"},\n        }\n\n        b, err := bipf.Marshal(group)\n        if err != nil {\n            fmt.Println(\"error:\", err)\n        }\n\n        fmt.Println(hex.EncodeToString(b))\n        // Output:\n        // 9d031049442201000000204e616d65205265647330436f6c6f7273c401384372696d736f6e185265642052756279304d61726f6f6e\n    }\n\n### Unmarshal\n\n    import (\n        \"encoding/hex\"\n        \"fmt\"\n        \"github.com/boreq/go-bipf\"\n    )\n\n    func ExampleUnmarshal() {\n        bipfBlob, err := hex.DecodeString(\"9d031049442201000000204e616d65205265647330436f6c6f7273c401384372696d736f6e185265642052756279304d61726f6f6e\")\n        if err != nil {\n            fmt.Println(\"error:\", err)\n        }\n\n        type ColorGroup struct {\n            ID     int\n            Name   string\n            Colors []string\n        }\n\n        var group ColorGroup\n\n        err = bipf.Unmarshal(bipfBlob, \u0026group)\n        if err != nil {\n            fmt.Println(\"error:\", err)\n        }\n        fmt.Printf(\"%+v\", group)\n        // Output:\n        // {ID:1 Name:Reds Colors:[Crimson Red Ruby Maroon]}\n    }\n\n[spec]: https://github.com/ssbc/bipf-spec\n[jsoniter]: github.com/json-iterator/go\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssbc%2Fgo-bipf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fssbc%2Fgo-bipf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssbc%2Fgo-bipf/lists"}