{"id":21730547,"url":"https://github.com/andy2046/maths","last_synced_at":"2025-08-05T08:14:14.952Z","repository":{"id":57530444,"uuid":"151811348","full_name":"andy2046/maths","owner":"andy2046","description":"Max Min for alphanumeric in Go","archived":false,"fork":false,"pushed_at":"2018-10-07T07:19:50.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-20T23:27:09.866Z","etag":null,"topics":["alphanumeric","golang","max","min","range","ternary"],"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/andy2046.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":"2018-10-06T06:26:27.000Z","updated_at":"2021-09-13T02:23:39.000Z","dependencies_parsed_at":"2022-09-10T08:11:40.155Z","dependency_job_id":null,"html_url":"https://github.com/andy2046/maths","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/andy2046/maths","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andy2046%2Fmaths","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andy2046%2Fmaths/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andy2046%2Fmaths/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andy2046%2Fmaths/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andy2046","download_url":"https://codeload.github.com/andy2046/maths/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andy2046%2Fmaths/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268859123,"owners_count":24318874,"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","status":"online","status_checked_at":"2025-08-05T02:00:12.334Z","response_time":2576,"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"}},"keywords":["alphanumeric","golang","max","min","range","ternary"],"created_at":"2024-11-26T04:16:16.394Z","updated_at":"2025-08-05T08:14:14.884Z","avatar_url":"https://github.com/andy2046.png","language":"Go","readme":"# maths\n\n## makes `Max` `Min` easier\nGo `math` pkg provides `Max` `Min` only for `float64`, this lib adds on for other types.\n\n[Why does Go not have feature X?](https://golang.org/doc/faq#Why_doesnt_Go_have_feature_X)\n\n### Install\n\n```\ngo get github.com/andy2046/maths\n```\n\n### Usage\n\n```go\nfunc main() {\n    iSlice := []int{1, 2, 3}\n    i := IntVar.Max(iSlice...) // 3\n    i = IntVar.Min(iSlice...) // 1\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandy2046%2Fmaths","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandy2046%2Fmaths","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandy2046%2Fmaths/lists"}