{"id":13581532,"url":"https://github.com/kazhuravlev/just","last_synced_at":"2025-04-05T17:33:19.261Z","repository":{"id":56755672,"uuid":"523781944","full_name":"kazhuravlev/just","owner":"kazhuravlev","description":"Collection of useful functions. Complete simple tasks faster!","archived":false,"fork":false,"pushed_at":"2024-09-03T19:00:19.000Z","size":119,"stargazers_count":32,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T16:16:18.656Z","etag":null,"topics":["common","essential","go","go-lib","golang","helpers","lib"],"latest_commit_sha":null,"homepage":"","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/kazhuravlev.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":"2022-08-11T15:49:24.000Z","updated_at":"2024-10-15T16:57:28.000Z","dependencies_parsed_at":"2024-04-28T17:29:55.315Z","dependency_job_id":"012f1edf-abf5-4dfb-a29b-eee3580b731f","html_url":"https://github.com/kazhuravlev/just","commit_stats":null,"previous_names":[],"tags_count":86,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kazhuravlev%2Fjust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kazhuravlev%2Fjust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kazhuravlev%2Fjust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kazhuravlev%2Fjust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kazhuravlev","download_url":"https://codeload.github.com/kazhuravlev/just/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247375846,"owners_count":20929118,"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":["common","essential","go","go-lib","golang","helpers","lib"],"created_at":"2024-08-01T15:02:04.736Z","updated_at":"2025-04-05T17:33:14.247Z","avatar_url":"https://github.com/kazhuravlev.png","language":"Go","funding_links":[],"categories":["Utilities","Go","公用事业公司"],"sub_categories":["Utility/Miscellaneous","实用程序/Miscellaneous"],"readme":"# just\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/kazhuravlev/just.svg)](https://pkg.go.dev/github.com/kazhuravlev/just)\n[![License](https://img.shields.io/github/license/kazhuravlev/just?color=blue)](https://github.com/kazhuravlev/just/blob/master/LICENSE)\n[![Build Status](https://github.com/kazhuravlev/just/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/kazhuravlev/just/actions/workflows/tests.yml?query=branch%3Amaster)\n[![Go Report Card](https://goreportcard.com/badge/github.com/kazhuravlev/just)](https://goreportcard.com/report/github.com/kazhuravlev/just)\n[![CodeCov](https://codecov.io/gh/kazhuravlev/just/branch/master/graph/badge.svg?token=tNKcOjlxLo)](https://codecov.io/gh/kazhuravlev/just)\n[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go#utilities)\n\nThis project contains features that help make the noisy stuff in every project.\n\n- Filter slices, maps.\n- Applying functions to collections.\n- Null[any] for optional fields in API and sql.DB queries.\n\n## Most helpful functions\n\n- [`SliceIter`](https://pkg.go.dev/github.com/kazhuravlev/just#SliceIter) allows you to iterate over slice with\n  special `IterContext` that provide some methods like `IsFirst`, `IsLast`\n- [`SliceMap`](https://pkg.go.dev/github.com/kazhuravlev/just#SliceMap) and\n  [`SliceMapErr`](https://pkg.go.dev/github.com/kazhuravlev/just#SliceMapErr) allow you to map a slice to\n  another one. Useful for adapters.\n- [`NewPool`](https://pkg.go.dev/github.com/kazhuravlev/just#NewPool) `sync.Pool` with generics\n- [`ChanAdapt`](https://pkg.go.dev/github.com/kazhuravlev/just#ChanAdapt) allows to create an adapted version of channel\n- [`ContextWithTimeout`](https://pkg.go.dev/github.com/kazhuravlev/just#ContextWithTimeout) runs a function with context\n  and timeout\n- [`ErrAs`](https://pkg.go.dev/github.com/kazhuravlev/just#ErrAs) helps to handle an errors\n- [`SliceChunk`](https://pkg.go.dev/github.com/kazhuravlev/just#SliceChunk) iterates over chunks\n- [`SliceChain`](https://pkg.go.dev/github.com/kazhuravlev/just#SliceChain) joins slices to one\n- [`StrSplitByChars`](https://pkg.go.dev/github.com/kazhuravlev/just#StrSplitByChars) splits the string by symbols\n\n## Examples\n\nThis library contains a bunch of functions. Please\nsee [pkg.go.dev](https://pkg.go.dev/github.com/kazhuravlev/just#pkg-examples)\nfor examples.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkazhuravlev%2Fjust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkazhuravlev%2Fjust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkazhuravlev%2Fjust/lists"}