{"id":17309129,"url":"https://github.com/cornelk/orderedmap","last_synced_at":"2025-03-27T00:21:22.091Z","repository":{"id":59045124,"uuid":"530015110","full_name":"cornelk/orderedmap","owner":"cornelk","description":"A Golang Map that keeps track of the insert order of items.","archived":false,"fork":false,"pushed_at":"2022-08-29T02:00:46.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-01T05:45:25.721Z","etag":null,"topics":["go","golang","hashmap","map","orderedmap"],"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/cornelk.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}},"created_at":"2022-08-29T00:29:04.000Z","updated_at":"2022-08-29T02:06:16.000Z","dependencies_parsed_at":"2022-09-11T04:41:38.566Z","dependency_job_id":null,"html_url":"https://github.com/cornelk/orderedmap","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornelk%2Forderedmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornelk%2Forderedmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornelk%2Forderedmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornelk%2Forderedmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cornelk","download_url":"https://codeload.github.com/cornelk/orderedmap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245756230,"owners_count":20667122,"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","hashmap","map","orderedmap"],"created_at":"2024-10-15T12:26:55.998Z","updated_at":"2025-03-27T00:21:22.073Z","avatar_url":"https://github.com/cornelk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# orderedmap\n\n[![Build status](https://github.com/cornelk/orderedmap/actions/workflows/go.yaml/badge.svg?branch=main)](https://github.com/cornelk/orderedmap/actions)\n[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go\u0026logoColor=white\u0026style=flat-square)](https://pkg.go.dev/github.com/cornelk/orderedmap)\n[![Go Report Card](https://goreportcard.com/badge/github.com/cornelk/orderedmap)](https://goreportcard.com/report/github.com/cornelk/orderedmap)\n[![codecov](https://codecov.io/gh/cornelk/orderedmap/branch/main/graph/badge.svg?token=NS5UY28V3A)](https://codecov.io/gh/cornelk/orderedmap)\n\n## Overview\n\nA Golang Map that keeps track of the insert order of items.\n\nThe current version can be used as a replacement for `map[string]interface{}` and allows JSON unmarshalling into it.\nNo manual adding of items is currently possible.\n\n## Usage\n\nUnmarshall and marshall JSON:\n\n```\nvar m Map\ninput := `{\"423\":\"abc\",\"231\":\"dbh\",\"152\":\"xyz\"}`\n\nm.UnmarshalJSON([]byte(input))\n\noutput, _ := m.MarshalJSON()\n# unlike the standard Golang map, the output will be exact the same and not in random key order\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcornelk%2Forderedmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcornelk%2Forderedmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcornelk%2Forderedmap/lists"}