{"id":4017484,"name":"github.com/breml/sample","ecosystem":"go","description":"Package sample implements sampling algorithms for 1 in n sampling for a random value (probe): * Modulo, using modulo-operation * PowerOf2, using bitwise AND-operation, only usable if the sampling rate is a power of 2 * LowerThan, checking if the probe is lower than a pre calculated boundary (maximum value for probe divided by sampling rate) * Reciprocal, using a multiplication by the reciprocal value of the sampling rate (Details: https://breml.github.io/blog/2015/10/22/dividable-without-remainder/) * Decrement, implementation variant, where the random value is only calculated after a successful sampling","homepage":"https://github.com/breml/sample","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/breml/sample","keywords_array":[],"namespace":"github.com/breml","versions_count":1,"first_release_published_at":"2015-11-26T16:38:55.000Z","latest_release_published_at":"2015-11-26T16:38:55.000Z","latest_release_number":"v0.0.0-20151126163855-c42269b4445f","last_synced_at":"2026-09-14T20:52:56.662Z","created_at":"2022-04-12T08:43:48.452Z","updated_at":"2026-09-16T20:14:04.861Z","registry_url":"https://pkg.go.dev/github.com/breml/sample","install_command":"go get github.com/breml/sample","documentation_url":"https://pkg.go.dev/github.com/breml/sample#section-documentation","metadata":{},"repo_metadata":{"id":75770053,"uuid":"44980236","full_name":"breml/sample","owner":"breml","description":"Go package sample implements several sampling algorithms (1 in n sampling)","archived":false,"fork":false,"pushed_at":"2015-11-26T16:39:03.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-31T13:39:48.471Z","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/breml.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}},"created_at":"2015-10-26T16:04:49.000Z","updated_at":"2015-10-27T18:49:48.000Z","dependencies_parsed_at":"2023-03-13T20:15:23.464Z","dependency_job_id":null,"html_url":"https://github.com/breml/sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/breml/sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/breml%2Fsample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/breml%2Fsample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/breml%2Fsample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/breml%2Fsample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/breml","download_url":"https://codeload.github.com/breml/sample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/breml%2Fsample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":341189360,"owners_count":37324610,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-08-22T15:14:58.755Z","status":"online","status_checked_at":"2026-09-14T02:00:06.290Z","response_time":176,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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"},"owner_record":{"login":"breml","name":"Lucas Bremgartner","uuid":"6205217","kind":"user","description":"More than 10 years experience in software engineering. Working with different programming languages and in multiple fields of IT for more than 20 years.","email":"","website":"https://breml.github.io/","location":"Switzerland","twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/6205217?u=ddaccd56a7384572a1d80b85e204dad293d80c9d\u0026v=4","repositories_count":135,"last_synced_at":"2023-08-07T06:15:37.953Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/breml","funding_links":[],"total_stars":null,"followers":null,"following":null,"created_at":"2022-11-06T18:33:14.684Z","updated_at":"2023-08-07T06:15:38.251Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/breml","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/breml/repositories"},"tags":[]},"repo_metadata_updated_at":"2026-09-16T20:14:04.861Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":0,"rankings":{"downloads":null,"dependent_repos_count":9.345852080216646,"dependent_packages_count":6.999148183520997,"stargazers_count":null,"forks_count":null,"average":8.172500131868823},"purl":"pkg:golang/github.com/breml/sample","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/breml/sample","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/breml/sample","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/breml/sample/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2026-09-14T19:55:19.310Z","issues_count":0,"pull_requests_count":0,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":null,"issues_closed_count":0,"pull_requests_closed_count":0,"pull_request_authors_count":0,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":null,"merged_pull_requests_count":0,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/breml%2Fsample/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fbreml%2Fsample/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fbreml%2Fsample/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fbreml%2Fsample/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fbreml%2Fsample/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fbreml%2Fsample/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fbreml%2Fsample/codemeta","maintainers":[]}