{"id":24978542,"url":"https://github.com/dowlandaiello/immutable-go","last_synced_at":"2025-03-29T09:26:33.521Z","repository":{"id":112455783,"uuid":"216061902","full_name":"dowlandaiello/immutable-go","owner":"dowlandaiello","description":"Straightforward, functional immutable data collections for Go.","archived":false,"fork":false,"pushed_at":"2019-10-22T01:35:23.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T23:59:36.169Z","etag":null,"topics":["golang","immutablejs"],"latest_commit_sha":null,"homepage":"","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/dowlandaiello.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-10-18T16:09:53.000Z","updated_at":"2019-10-22T01:35:25.000Z","dependencies_parsed_at":"2023-05-15T04:15:17.655Z","dependency_job_id":null,"html_url":"https://github.com/dowlandaiello/immutable-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dowlandaiello%2Fimmutable-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dowlandaiello%2Fimmutable-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dowlandaiello%2Fimmutable-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dowlandaiello%2Fimmutable-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dowlandaiello","download_url":"https://codeload.github.com/dowlandaiello/immutable-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246164232,"owners_count":20733755,"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":["golang","immutablejs"],"created_at":"2025-02-03T23:59:41.272Z","updated_at":"2025-03-29T09:26:33.496Z","avatar_url":"https://github.com/dowlandaiello.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# immutable-go\n\nStraightforward, functional immutable data collections for Go.\n\n## Installation\n\n```bash\ngo get -u github.com/dowlandaiello/immutable-go\n```\n\n## Lists\n\n### Initialization\n\n```go\nimport \"github.com/dowlandaiello/immutable-go\"\n\nlist := immutable.NewList(1, 2, 3, 4) // Initializes a new list of integers\n```\n\n### Getting Values\n\n```go\nimport \"github.com/dowlandaiello/immutable-go\"\n\nlist := immutable.NewList(1, 2, 3, 4) // Initializes a new list of integers\n\nfirstElement := list(0) // Get the element at index 0\nsecondElement := list(1) // Get the element at index 1\n...\n```\n\n### Setting Values\n\n```go\nimport \"github.com/dowlandaiello/immutable-go\"\n\nlist := immutable.NewList(1, 2, 3, 4) // Initialize a new list of integers\nnewList := list.Set(0, 37) // Set the element at index 0 to 37\n```\n\nOr, push a value:\n\n```go\nimport \"github.com/dowlandaiello/immutable-go\"\n\nlist := immutable.NewList(1, 2, 3, 4) // Initialize a new list of integers\nnewList := list.Push(102) // Push an integer with the value 102 to the list\n```\n\nFinally, pop a value:\n\n```go\nimport \"github.com/dowlandaiello/immutable-go\"\n\nlist := immutable.NewList(1, 2, 3, 4) // Initialize a new list of integers\nnewList := list.Pop() // Remove an integer from the list\n```\n\n### Getting a List's Used Size\n\n```go\nimport \"github.com/dowlandaiello/immutable-go\"\n\nlist := immutable.NewList(1, 2, 3, 4) // Initialize a new list of integers\nlength := list.Size() // Get the size of the list\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdowlandaiello%2Fimmutable-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdowlandaiello%2Fimmutable-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdowlandaiello%2Fimmutable-go/lists"}