{"id":16122072,"url":"https://github.com/foxcapades/tally-go","last_synced_at":"2025-04-06T11:41:08.587Z","repository":{"id":57556120,"uuid":"316442249","full_name":"Foxcapades/tally-go","owner":"Foxcapades","description":null,"archived":false,"fork":false,"pushed_at":"2020-11-29T14:53:30.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-12T17:19:21.886Z","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/Foxcapades.png","metadata":{"files":{"readme":"readme.adoc","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":"2020-11-27T08:24:57.000Z","updated_at":"2020-11-29T14:53:32.000Z","dependencies_parsed_at":"2022-09-02T12:51:16.371Z","dependency_job_id":null,"html_url":"https://github.com/Foxcapades/tally-go","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Foxcapades%2Ftally-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Foxcapades%2Ftally-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Foxcapades%2Ftally-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Foxcapades%2Ftally-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Foxcapades","download_url":"https://codeload.github.com/Foxcapades/tally-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478234,"owners_count":20945262,"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","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-10-09T21:09:18.195Z","updated_at":"2025-04-06T11:41:08.546Z","avatar_url":"https://github.com/Foxcapades.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Simple Counters\n\nimage:https://img.shields.io/github/v/tag/foxcapades/tally-go[GitHub tag (latest SemVer)]\nimage:https://img.shields.io/github/go-mod/go-version/foxcapades/tally-go[GitHub go.mod Go version]\nimage:https://img.shields.io/github/license/foxcapades/tally-go[GitHub]\nimage:https://img.shields.io/badge/api-docs-ff69b4[title=\"API Docs\", link=https://pkg.go.dev/github.com/foxcapades/tally-go/v1/tally]\nimage:https://github.com/Foxcapades/tally-go/workflows/Go/badge.svg[Go]\nimage:https://codecov.io/gh/Foxcapades/tally-go/branch/main/graph/badge.svg?token=E4WD9IURJL[title=codecov, link=https://codecov.io/gh/Foxcapades/tally-go]\n\nA set of counters for each of the standard Go integer types.\n\n[source,go]\n----\npackage main\n\nimport (\n  \"fmt\"\n  \"github.com/foxcapades/tally-go/v1/tally\"\n)\n\nfunc main() {\n  // create a new int8 tally wrapping a starting value of 5\n  count := tally.ITally8(5)\n\n  fmt.Println(count.Inc())   // 5\n  fmt.Println(count.Dec())   // 6\n  fmt.Println(count.Add(15)) // 5\n  fmt.Println(count.Sub(10)) // 20\n  fmt.Println(count.Zero())  // 10\n  fmt.Println(count.Cur())   // 0\n}\n----\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxcapades%2Ftally-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoxcapades%2Ftally-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxcapades%2Ftally-go/lists"}