{"id":20036080,"url":"https://github.com/dollarsignteam/go-utils","last_synced_at":"2026-03-05T08:31:02.169Z","repository":{"id":65752740,"uuid":"598477520","full_name":"dollarsignteam/go-utils","owner":"dollarsignteam","description":"Utilities for the Go","archived":false,"fork":false,"pushed_at":"2025-02-20T10:01:30.000Z","size":149,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-05T05:35:29.802Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dollarsignteam.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,"zenodo":null}},"created_at":"2023-02-07T07:31:27.000Z","updated_at":"2025-02-20T10:00:56.000Z","dependencies_parsed_at":"2023-12-19T14:26:33.875Z","dependency_job_id":"3ccff897-0f53-48a1-b8cc-3c55fc5dc2cb","html_url":"https://github.com/dollarsignteam/go-utils","commit_stats":{"total_commits":127,"total_committers":4,"mean_commits":31.75,"dds":0.07086614173228345,"last_synced_commit":"15e02948443d01113e6a3f81d1321fd791dbe6e6"},"previous_names":[],"tags_count":56,"template":false,"template_full_name":null,"purl":"pkg:github/dollarsignteam/go-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dollarsignteam%2Fgo-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dollarsignteam%2Fgo-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dollarsignteam%2Fgo-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dollarsignteam%2Fgo-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dollarsignteam","download_url":"https://codeload.github.com/dollarsignteam/go-utils/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dollarsignteam%2Fgo-utils/sbom","scorecard":{"id":350122,"data":{"date":"2025-08-11","repo":{"name":"github.com/dollarsignteam/go-utils","commit":"c0ca5780e6a83644bce226faee5af53e8885d88d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/workflow.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":2,"reason":"Found 5/24 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/workflow.yaml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/dollarsignteam/go-utils/workflow.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/workflow.yaml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/dollarsignteam/go-utils/workflow.yaml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":5,"reason":"5 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2025-3553 / GHSA-mh63-6h87-95cp","Warn: Project is vulnerable to: GO-2025-3540","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T08:08:13.107Z","repository_id":65752740,"created_at":"2025-08-18T08:08:13.108Z","updated_at":"2025-08-18T08:08:13.108Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30115911,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T08:19:04.902Z","status":"ssl_error","status_checked_at":"2026-03-05T08:17:37.148Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-13T10:10:45.084Z","updated_at":"2026-03-05T08:31:02.147Z","avatar_url":"https://github.com/dollarsignteam.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Utilities for the Go\n\nUtilities for the Golang package. The utils package is a generic package that provides utility functions and structures that can be used across different parts of a program. The package contains several functions and structures that can be used to simplify common tasks.\n\n## Installation\n\n```shell\ngo get github.com/dollarsignteam/go-utils\n```\n\n## Usage\n\n`PointerOf` returns a pointer to the input value. For example:\n\n```go\nx := 42\nptr := PointerOf(x)\nfmt.Println(*ptr) // Output: 42\n```\n\n`PackageName` returns the name of the package that calls it. For example:\n\n```go\nfmt.Println(PackageName()) // Output: utils\n```\n\n`UniqueOf` removes duplicates from a slice of any type and returns a new slice containing only the unique elements. For example:\n\n```go\ninput := []int{1, 2, 3, 2, 1}\nunique := UniqueOf(input)\nfmt.Println(unique) // Output: [1 2 3]\n```\n\n`ValueOf` takes a pointer to a value of any type and returns the value. For example:\n\n```go\nx := 42\nptr := \u0026x\nval := ValueOf(ptr)\nfmt.Println(val) // Output: 42\n```\n\n`IsArrayOrSlice` takes a value of any type and returns a boolean indicating if it is a slice or an array. For example:\n\n```go\narr := [3]int{1, 2, 3}\nslice := []int{1, 2, 3}\nfmt.Println(IsArrayOrSlice(arr)) // Output: true\nfmt.Println(IsArrayOrSlice(slice)) // Output: true\nfmt.Println(IsArrayOrSlice(x)) // Output: false\n```\n\n`BoolToInt` converts a boolean value to an integer (1 for true, 0 for false). For example:\n\n```go\nfmt.Println(BoolToInt(true)) // Output: 1\nfmt.Println(BoolToInt(false)) // Output: 0\n```\n\n`IntToBool` converts an integer value to a boolean (true for non-zero values, false for zero). For example:\n\n```go\nfmt.Println(IntToBool(1)) // Output: true\nfmt.Println(IntToBool(0)) // Output: false\n```\n\nFor more information, check out the 📚 [documentation][2].\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## Author\n\nDollarsign\n\n## License\n\nLicensed under the MIT License - see the [LICENSE][1] file for details.\n\n[1]: https://github.com/dollarsignteam/go-utils/blob/main/LICENSE\n[2]: https://pkg.go.dev/github.com/dollarsignteam/go-utils\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdollarsignteam%2Fgo-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdollarsignteam%2Fgo-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdollarsignteam%2Fgo-utils/lists"}