{"id":42640861,"url":"https://github.com/spatialcurrent/go-counter","last_synced_at":"2026-01-29T06:14:47.164Z","repository":{"id":57554892,"uuid":"147820841","full_name":"spatialcurrent/go-counter","owner":"spatialcurrent","description":"Simple library and command line program for generating frequency distributions.","archived":false,"fork":false,"pushed_at":"2019-08-21T02:10:40.000Z","size":6,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-07-27T22:38:22.319Z","etag":null,"topics":["big-data","bigdata","data"],"latest_commit_sha":null,"homepage":"https://godoc.org/github.com/spatialcurrent/go-counter/pkg/counter","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/spatialcurrent.png","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":"2018-09-07T12:33:29.000Z","updated_at":"2019-08-21T02:10:40.000Z","dependencies_parsed_at":"2022-09-26T18:51:28.901Z","dependency_job_id":null,"html_url":"https://github.com/spatialcurrent/go-counter","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/spatialcurrent/go-counter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatialcurrent%2Fgo-counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatialcurrent%2Fgo-counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatialcurrent%2Fgo-counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatialcurrent%2Fgo-counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spatialcurrent","download_url":"https://codeload.github.com/spatialcurrent/go-counter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spatialcurrent%2Fgo-counter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28865714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T05:56:06.453Z","status":"ssl_error","status_checked_at":"2026-01-29T05:55:57.668Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["big-data","bigdata","data"],"created_at":"2026-01-29T06:14:46.290Z","updated_at":"2026-01-29T06:14:47.155Z","avatar_url":"https://github.com/spatialcurrent.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CircleCI](https://circleci.com/gh/spatialcurrent/go-counter/tree/master.svg?style=svg)](https://circleci.com/gh/spatialcurrent/go-counter/tree/master) [![Go Report Card](https://goreportcard.com/badge/spatialcurrent/go-counter)](https://goreportcard.com/report/spatialcurrent/go-counter)  [![GoDoc](https://godoc.org/github.com/spatialcurrent/go-counter?status.svg)](https://godoc.org/github.com/spatialcurrent/go-counter) [![license](http://img.shields.io/badge/license-MIT-red.svg?style=flat)](https://github.com/spatialcurrent/go-counter/blob/master/LICENSE.md)\n\n# go-counter\n\n# Description\n\n**go-counter** is a command line program and package for generating frequency distributions.  The **gocounter** command line program supports the following operating systems and architectures.\n\n| GOOS | GOARCH |\n| ---- | ------ |\n| darwin | amd64 |\n| linux | amd64 |\n| windows | amd64 |\n| linux | arm64 |\n\n# Installation\n\nNo installation is required.  Just grab a [release](https://github.com/spatialcurrent/go-counter/releases).  You might want to rename your binary to just `gocounter` (or `counter`) for convenience.\n\nIf you do have go already installed, you can just run using `go run main.go` or install with `make install`.\n\n# Usage\n\n### Go\n\nYou can import **go-counter** as a library with:\n\n```go\nimport (\n  \"github.com/spatialcurrent/go-counter/pkg/counter\"\n)\n```\n\nSee [counter](https://godoc.org/github.com/spatialcurrent/go-counter/pkg/counter) in GoDoc for information on how to use Go API.\n\n### CLI\n\nOn the command line use `gocounter --help` to view usage.\n\n# Examples\n\n### Go\n\nSee the examples in the [counter](https://godoc.org/github.com/spatialcurrent/go-counter/pkg/counter) package documentation.\n\n### CLI\n\nTo print the 10 most frequent lines in a file as a JSON array use:\n\n```shell\ngocounter top -sejl -n 10 path/to/file\n```\n\n# Building\n\nYou can build all the released artifacts using `make build` or run the make target for a specific operating system and architecture.\n\n# Testing\n\nTo run Go tests use `make test` (or `bash scripts/test.sh`), which runs unit tests, `go vet`, `go vet with shadow`, [errcheck](https://github.com/kisielk/errcheck), [ineffassign](https://github.com/gordonklaus/ineffassign), [staticcheck](https://staticcheck.io/), and [misspell](https://github.com/client9/misspell).\n\n# Contributing\n\n[Spatial Current, Inc.](https://spatialcurrent.io) is currently accepting pull requests for this repository.  We'd love to have your contributions!  Please see [Contributing.md](https://github.com/spatialcurrent/go-counter/blob/master/CONTRIBUTING.md) for how to get started.\n\n# License\n\nThis work is distributed under the **MIT License**.  See **LICENSE** file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspatialcurrent%2Fgo-counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspatialcurrent%2Fgo-counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspatialcurrent%2Fgo-counter/lists"}