{"id":19110047,"url":"https://github.com/zeiss/go-transform","last_synced_at":"2025-02-22T11:18:34.725Z","repository":{"id":239985040,"uuid":"801178117","full_name":"ZEISS/go-transform","owner":"ZEISS","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-20T05:12:57.000Z","size":618,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-23T04:28:08.479Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZEISS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-05-15T18:36:42.000Z","updated_at":"2024-05-30T06:56:32.996Z","dependencies_parsed_at":"2024-05-30T06:55:50.734Z","dependency_job_id":"fdeb5312-4e34-4721-aa47-c7af130df679","html_url":"https://github.com/ZEISS/go-transform","commit_stats":null,"previous_names":["zeiss/go-transform"],"tags_count":0,"template":false,"template_full_name":"ZEISS/template-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZEISS%2Fgo-transform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZEISS%2Fgo-transform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZEISS%2Fgo-transform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZEISS%2Fgo-transform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZEISS","download_url":"https://codeload.github.com/ZEISS/go-transform/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240163743,"owners_count":19758055,"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":[],"created_at":"2024-11-09T04:23:24.549Z","updated_at":"2025-02-22T11:18:34.699Z","avatar_url":"https://github.com/ZEISS.png","language":"Go","readme":"# Transform\n\n[![Test \u0026 Build](https://github.com/zeiss/go-transform/actions/workflows/main.yml/badge.svg)](https://github.com/zeiss/go-transform/actions/workflows/main.yml)\n[![Go Reference](https://pkg.go.dev/badge/github.com/zeiss/go-transform.svg)](https://pkg.go.dev/github.com/zeiss/go-transform)\n[![Go Report Card](https://goreportcard.com/badge/github.com/zeiss/go-transform)](https://goreportcard.com/report/github.com/zeiss/go-transform)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Taylor Swift](https://img.shields.io/badge/secured%20by-taylor%20swift-brightgreen.svg)](https://twitter.com/SwiftOnSecurity)\n\nTransform is a Go library that provides a simple way to transform data from one format to another.\n\n## Installation\n\n```bash\ngo get github.com/zeiss/go-transform\n```\n\n## Usage\n\n```go\ntype example struct {\n  Name string `tansform:\"trim,lowercase\"`\n}\n\nt := transform.New()\ne := example{Name: \"  John Doe  \"}\n\nif err := t.Transform(\u0026e); err != nil {\n  log.Fatal(err)\n}\n\nfmt.Println(e.Name) // Output: john doe\n```\n\n## Transformations\n\nThis is the list of all available transformations:\n\n| Function | Description |\n| --- | --- |\n| `trim` | Removes leading and trailing whitespace. |\n| `lowercase` | Converts the string to lowercase. |\n| `uppercase` | Converts the string to uppercase. |\n| `rtrim` | Removes trailing whitespace. |\n| `ltrim` | Removes leading whitespace. |\n| `uppercase` | Converts the string to uppercase. |\n\n## License\n\n[MIT](/LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeiss%2Fgo-transform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeiss%2Fgo-transform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeiss%2Fgo-transform/lists"}