{"id":47237614,"url":"https://github.com/aldelo/common","last_synced_at":"2026-04-02T19:43:20.422Z","repository":{"id":50942659,"uuid":"288015875","full_name":"aldelo/common","owner":"aldelo","description":"Common helper and wrapper utility code for golang projects","archived":false,"fork":false,"pushed_at":"2026-03-31T06:04:57.000Z","size":1773,"stargazers_count":9,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-03-31T08:32:45.625Z","etag":null,"topics":["aes-256","golang","helpers","parser","reflection","utilities","wrappers"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aldelo.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-08-16T20:03:52.000Z","updated_at":"2026-03-23T06:52:37.000Z","dependencies_parsed_at":"2023-11-18T07:23:49.265Z","dependency_job_id":"e906f6d0-a037-45e1-bf3b-7d6efb5c7018","html_url":"https://github.com/aldelo/common","commit_stats":null,"previous_names":[],"tags_count":77,"template":false,"template_full_name":null,"purl":"pkg:github/aldelo/common","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldelo%2Fcommon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldelo%2Fcommon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldelo%2Fcommon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldelo%2Fcommon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aldelo","download_url":"https://codeload.github.com/aldelo/common/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aldelo%2Fcommon/sbom","scorecard":{"id":178397,"data":{"date":"2025-08-11","repo":{"name":"github.com/aldelo/common","commit":"00c579acf777b7509ca5b6e6708762c539bc4be4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.2,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":"Code-Review","score":6,"reason":"Found 11/16 approved changesets -- score normalized to 6","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":"Maintained","score":6,"reason":"8 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 6","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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: Apache License 2.0: 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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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 25 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":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0635","Warn: Project is vulnerable to: GO-2022-0646","Warn: Project is vulnerable to: GO-2025-3787 / GHSA-fv92-fjc5-jj9h"],"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-16T18:18:18.845Z","repository_id":50942659,"created_at":"2025-08-16T18:18:18.845Z","updated_at":"2025-08-16T18:18:18.845Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31314381,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"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":["aes-256","golang","helpers","parser","reflection","utilities","wrappers"],"created_at":"2026-03-13T23:25:22.472Z","updated_at":"2026-04-02T19:43:20.401Z","avatar_url":"https://github.com/aldelo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# common\nCommon helper utilities and wrappers for code reuse.\n \nWhen we code projects, we constantly encounter a similar set of functionality and logic. This package's intent is to wrap those commonly recurring functionalities and access points into a reusable helper package, so that we don't have to keep maintaining separate code bases.\n\nThis package will continue to be updated with more reusable code as well.\n\n# Usage\n- To use the common package:\n  - in the project folder root: \n  - go mod init\n  - go mod tidy\n- For example, if project is \"HelloWorld\":\n  - /HelloWorld/go mod init\n  - /HelloWorld/go mod tidy\n\n# types of helpers\n- string helpers\n- number helpers\n- io helpers\n- converter helpers\n- db type helpers\n- net helpers\n- reflection helpers\n- regex helpers\n- time and date helpers\n- uuid helpers\n- crypto helpers (aes, gcm, rsa, sha, etc)\n- csv parser helpers\n- wrappers for aws related services\n  - service discovery / cloud map wrapper (using aws sdk)\n  - dynamodb / dax wrapper (using aws sdk)\n  - kms wrapper (using aws sdk)\n  - redis wrapper (using go-redis package)\n  - s3 wrapper (using aws sdk)\n  - ses wrapper (using aws sdk)\n  - sqs wrapper (using aws sdk)\n  - sns wrapper (using aws sdk)\n  - gin web server \n  - xray wrapper (using aws sdk)\n    - use xray.Init() to config\n    - use xray.SetXRayServiceOn() to enable xray tracing\n    - xray tracing is already coded into the following services:\n      - kms, cloudmap, dynamodb, redis, s3, ses, sns, sqs, mysql, gin\n- wrappers for relational database access\n  - mysql wrapper (using sqlx package)\n  - sqlite wrapper (using sqlx package)\n  - sqlserver wrapper (using sqlx package)\n- other wrappers\n  - for running as systemd service\n  - for logging and config\n  - for circuit breaker and rate limit\n  - etc.\n  \n# build and deploy automation\n- Create a file such as 'build.sh' within project\n- Edit file content as:\n```\n    #!/bin/zsh\n\n    GOOS=linux GOARCH=amd64 go build\n    scp -i ~/.ssh/YourKey.pem YourBinary hostUserName@hostIP:/home/hostUserName/targetFolder\n```\n- Descriptions:\n  - YourKey.pem = the Linux Host SSH Certificate Key\n  - YourBinary = the Binary Build by go build to Upload\n  - hostUserName = the Linux Host Login Username\n  - hostIP = the Linux Host IP Address\n  - hostUserName = the Linux Host Login Username\n  - targetFolder = the Linux Host Folder Where SCP Will Upload YourBinary To\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faldelo%2Fcommon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faldelo%2Fcommon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faldelo%2Fcommon/lists"}