{"id":20415873,"url":"https://github.com/obsidiandynamics/libstdgo","last_synced_at":"2025-04-12T17:06:45.822Z","repository":{"id":113718594,"uuid":"256634331","full_name":"obsidiandynamics/libstdgo","owner":"obsidiandynamics","description":"Standard libraries for Go","archived":false,"fork":false,"pushed_at":"2020-07-06T09:20:09.000Z","size":120,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T11:21:33.634Z","etag":null,"topics":["cli","concurrency","golang","logging","testing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/obsidiandynamics.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-17T23:56:53.000Z","updated_at":"2022-05-05T08:33:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"21bb4388-7d9f-474a-91de-3564feed789e","html_url":"https://github.com/obsidiandynamics/libstdgo","commit_stats":null,"previous_names":["obsidiandynamics/stdlibgo"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsidiandynamics%2Flibstdgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsidiandynamics%2Flibstdgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsidiandynamics%2Flibstdgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsidiandynamics%2Flibstdgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/obsidiandynamics","download_url":"https://codeload.github.com/obsidiandynamics/libstdgo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248602304,"owners_count":21131615,"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":["cli","concurrency","golang","logging","testing"],"created_at":"2024-11-15T06:17:52.891Z","updated_at":"2025-04-12T17:06:45.796Z","avatar_url":"https://github.com/obsidiandynamics.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://raw.githubusercontent.com/wiki/obsidiandynamics/libstdgo/images/libstdgo-logo.png\" width=\"90px\" alt=\"logo\"/\u003e `libstdgo`\n===\n![Go version](https://img.shields.io/github/go-mod/go-version/obsidiandynamics/libstdgo)\n[![Build](https://travis-ci.org/obsidiandynamics/libstdgo.svg?branch=master) ](https://travis-ci.org/obsidiandynamics/libstdgo#)\n![Release](https://img.shields.io/github/v/release/obsidiandynamics/libstdgo?color=ff69b4)\n[![Codecov](https://codecov.io/gh/obsidiandynamics/libstdgo/branch/master/graph/badge.svg)](https://codecov.io/gh/obsidiandynamics/libstdgo)\n[![Go Report Card](https://goreportcard.com/badge/github.com/obsidiandynamics/libstdgo)](https://goreportcard.com/report/github.com/obsidiandynamics/libstdgo)\n[![Total alerts](https://img.shields.io/lgtm/alerts/g/obsidiandynamics/libstdgo.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/obsidiandynamics/libstdgo/alerts/)\n[![GoDoc Reference](https://img.shields.io/badge/docs-GoDoc-blue.svg)](https://pkg.go.dev/github.com/obsidiandynamics/libstdgo?tab=subdirectories)\n\n**Standard libraries for Go**, taking care of things like:\n* `concurrent`: **concurrent and thread-safe data structures** —\n  - `AtomicCounter`: atomic `int64` counter\n  - `Scoreboard`: a space-efficient map of `string`-keyed `int64` counters\n  - `AtomicReference` an atomic reference that allows for `nil` pointers\n  - `Deadline` - conditional running of tasks that are bound to a deadline\n* `scribe`: **logging façade that features logger mocking and assertions**, and comes with **ready-to-go bindings** for —\n  - The built-in `os.Stdout` file handle\n  - The built-in `log` package\n  - [Glog](https://github.com/golang/glog)\n  - [Log15](https://github.com/inconshreveable/log15)\n  - [Logrus](https://github.com/sirupsen/logrus)\n  - [Seelog](https://github.com/cihub/seelog)\n  - [Zap](https://github.com/uber-go/zap)\n  - Overlog — a thread-safe logger for debugging concurrent apps, built into Scribe\n* `check`: **assertion utilities**\n  - `ThatPanicsAsExpected(func)`: asserting panic expectations\n  - `Wait(t, timeout).UntilAsserted(assertion)`: time-based assertions\n  - `TestCapture`: capture of `testing.T` failures (for self-testing of assertion libraries)\n  - `Intercept(t).Mutate(...)`: enrichment of assertion failure messages\n* `commander`: **schemaless command-line argument parsing**\n  - `Parse(os.Args).Mappify`\n* `fault`: **fault injection**\n* `arity`: **extraction of optional arguments to variadic functions**\n  - `arg := arity.SoleUntyped(\"a_default\", args).(string)`\n* `diags`: **debugging and diagnostics**\n\n\nCheck out the [GoDocs](https://pkg.go.dev/github.com/obsidiandynamics/libstdgo?tab=subdirectories).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobsidiandynamics%2Flibstdgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobsidiandynamics%2Flibstdgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobsidiandynamics%2Flibstdgo/lists"}