{"id":4005015,"name":"github.com/bign8/ternary","ecosystem":"go","description":"Package ternary provides methods similar to other languages ternary operator\n\nHave you ever wanted those pesky ternary operators for java/c/javascript/everything else?\n\nYou know, the special sauce that allows you to do this stuff.\n\nBut then you came over to the go world and realized the shortest way to do this was 4 lines of code.\n\nYeah, I had to go club some baby seals when I made that realization.\n\nBut wait!  I have crawled through the river of crappy code and propose this package to keep you clean on the other side.\n\nNow you you can use the following to assist with your ternary operator needs!\n\nMuch better! Oh, but you say you want to use ternary operators with something other than strings?\n\nWell go ahead!!! We support most of the core types: See index below for more!\n\nUnfortunantly, I can't implement EVERY type.\nThere are complicated ones like Array, Chan, Func, Map, Ptr, Slice and Struct that can take on any form.\n\nThank goodness go has typecasting!\nIf you run into something this packages doesn't support, just use the Interface comparison!","homepage":"https://github.com/bign8/ternary","licenses":"Unlicense","normalized_licenses":["Unlicense"],"repository_url":"https://github.com/bign8/ternary","keywords_array":[],"namespace":"github.com/bign8","versions_count":2,"first_release_published_at":"2022-10-16T13:59:07.000Z","latest_release_published_at":"2025-03-25T14:49:43.000Z","latest_release_number":"v0.0.0-20250325144943-fd7a80faf15f","last_synced_at":"2026-06-09T00:45:53.341Z","created_at":"2022-04-12T08:27:12.098Z","updated_at":"2026-06-09T00:45:53.341Z","registry_url":"https://pkg.go.dev/github.com/bign8/ternary","install_command":"go get github.com/bign8/ternary","documentation_url":"https://pkg.go.dev/github.com/bign8/ternary#section-documentation","metadata":{},"repo_metadata":{"uuid":"68976336","full_name":"bign8/ternary","owner":"bign8","description":"Go ternary operators in an external package","archived":false,"fork":false,"pushed_at":"2022-10-16T13:59:10.000Z","size":25,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"latest","last_synced_at":"2023-03-17T14:18:36.157Z","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":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"logo_url":null,"metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-23T01:21:54.000Z","updated_at":"2022-10-02T16:18:57.000Z","dependencies_parsed_at":"2022-10-02T07:40:15.017Z","dependency_job_id":null,"html_url":"https://github.com/bign8/ternary","commit_stats":null,"repository_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bign8%2Fternary","tags_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bign8%2Fternary/tags","manifests_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bign8%2Fternary/manifests","owner_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bign8","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":108921946,"host_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names"}},"repo_metadata_updated_at":"2023-03-21T19:22:06.800Z","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/bign8/ternary","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/bign8/ternary","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/bign8/ternary","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/bign8/ternary/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2023-05-18T18:01:43.962Z","issues_count":1,"pull_requests_count":4,"avg_time_to_close_issue":32157.0,"avg_time_to_close_pull_request":1456558.5,"issues_closed_count":1,"pull_requests_closed_count":4,"pull_request_authors_count":1,"issue_authors_count":1,"avg_comments_per_issue":1.0,"avg_comments_per_pull_request":0.25,"merged_pull_requests_count":4,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":1,"past_year_pull_requests_count":4,"past_year_avg_time_to_close_issue":32157.0,"past_year_avg_time_to_close_pull_request":1456558.5,"past_year_issues_closed_count":1,"past_year_pull_requests_closed_count":4,"past_year_pull_request_authors_count":1,"past_year_issue_authors_count":1,"past_year_avg_comments_per_issue":1.0,"past_year_avg_comments_per_pull_request":0.25,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":4},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fbign8%2Fternary/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fbign8%2Fternary/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fbign8%2Fternary/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fbign8%2Fternary/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fbign8%2Fternary/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fbign8%2Fternary/codemeta","maintainers":[]}