{"id":19634949,"url":"https://github.com/rikonor/go-redact","last_synced_at":"2025-02-26T21:40:29.680Z","repository":{"id":72775047,"uuid":"103541740","full_name":"rikonor/go-redact","owner":"rikonor","description":null,"archived":false,"fork":false,"pushed_at":"2017-10-25T22:34:31.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-09T16:19:11.218Z","etag":null,"topics":["redact"],"latest_commit_sha":null,"homepage":null,"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/rikonor.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":"2017-09-14T14:21:37.000Z","updated_at":"2017-09-14T14:22:43.000Z","dependencies_parsed_at":"2023-02-28T00:15:36.674Z","dependency_job_id":null,"html_url":"https://github.com/rikonor/go-redact","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/rikonor%2Fgo-redact","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikonor%2Fgo-redact/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikonor%2Fgo-redact/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikonor%2Fgo-redact/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rikonor","download_url":"https://codeload.github.com/rikonor/go-redact/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240941484,"owners_count":19882062,"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":["redact"],"created_at":"2024-11-11T12:23:20.011Z","updated_at":"2025-02-26T21:40:29.655Z","avatar_url":"https://github.com/rikonor.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"go-redact\n---\n\nRedact strings containing passwords.\n\n### Usage\n\n_URI_\n\n```go\n// With error handling\nu, err := redact.URI(\"http://user:pass@github.com\")\nif err != nil {\n  log.Fatalf(\"failed to redact: %s\", err) // Will happen if input is not a valid URI\n}\n\nfmt.Println(u)\n// Output:\n// http://user:REDACTED@github.com\n```\n\n```go\n// Without error handling\nu := redact.MustURI(\"adkljsaldjksla\")\n\nfmt.Println(u)\n// Output:\n// FAILED_TO_REDACT\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frikonor%2Fgo-redact","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frikonor%2Fgo-redact","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frikonor%2Fgo-redact/lists"}