{"id":17138102,"url":"https://github.com/sevlyar/retag","last_synced_at":"2025-08-04T06:35:00.590Z","repository":{"id":57480063,"uuid":"74475114","full_name":"sevlyar/retag","owner":"sevlyar","description":"Change tags of structures' fields in runtime without copying of data in Go. Conditional marshalling and unmarshalling.","archived":false,"fork":false,"pushed_at":"2024-03-19T20:17:31.000Z","size":22,"stargazers_count":62,"open_issues_count":2,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T16:15:43.016Z","etag":null,"topics":["go","golang","library","struct","tags"],"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/sevlyar.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":"2016-11-22T13:29:32.000Z","updated_at":"2025-04-08T15:06:46.000Z","dependencies_parsed_at":"2025-01-15T10:13:02.753Z","dependency_job_id":"fa62b67f-a1ab-48f5-9b1c-7735a1eb13d3","html_url":"https://github.com/sevlyar/retag","commit_stats":{"total_commits":27,"total_committers":2,"mean_commits":13.5,"dds":0.07407407407407407,"last_synced_commit":"c3f10e304082c33e4e30495ec38893053fc4c25d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sevlyar%2Fretag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sevlyar%2Fretag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sevlyar%2Fretag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sevlyar%2Fretag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sevlyar","download_url":"https://codeload.github.com/sevlyar/retag/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065283,"owners_count":21041872,"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","library","struct","tags"],"created_at":"2024-10-14T20:08:46.042Z","updated_at":"2025-04-09T16:15:47.701Z","avatar_url":"https://github.com/sevlyar.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Retag [![TravisCI](https://api.travis-ci.org/sevlyar/retag.svg)](https://travis-ci.org/sevlyar/retag) [![GoDoc](https://godoc.org/github.com/sevlyar/retag?status.svg)](https://godoc.org/github.com/sevlyar/retag) [![Go Report Card](https://goreportcard.com/badge/github.com/sevlyar/retag)](https://goreportcard.com/report/github.com/sevlyar/retag) [![codecov](https://codecov.io/gh/sevlyar/retag/branch/master/graph/badge.svg)](https://codecov.io/gh/sevlyar/retag)\n\nPackage retag provides an ability to change tags of structures' fields in runtime\nwithout copying of the data. It may be helpful in next cases:\n\n* Automatic tags generation;\n* Different views of the one data;\n* Fixing of leaky abstractions with minimal boilerplate code\nwhen application has layers of abstractions and model is\nseparated from storages and presentation layers.\n\nPlease see [examples in documentation](https://godoc.org/github.com/sevlyar/retag#example-package--Snaker) for details.\n\nFeatures:\n\n* No memory allocations (for cached types);\n* Fast converting (lookup in table and pointer creation for cached types);\n* Works with complex and nested types (e.g. `map[struct]*struct`).\n\nThe package requires go1.7+.\n\n## Installation\n\n    go get github.com/sevlyar/retag\n\nYou can use [gopkg.in](http://labix.org/gopkg.in):\n\n    go get gopkg.in/sevlyar/retag.v0\n\n## Documentation\n\nPlease see [godoc.org/github.com/sevlyar/retag](https://godoc.org/github.com/sevlyar/retag)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsevlyar%2Fretag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsevlyar%2Fretag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsevlyar%2Fretag/lists"}