Enter the query into the form above. You can look for specific version of a package by using @ symbol like this: gcc@10.
API method:
GET /api/packages?search=hello&page=1&limit=20
where search is your query, page is a page number and limit is a number of items on a single page. Pagination information (such as a number of pages and etc) is returned
in response headers.
If you'd like to join our channel search send a patch to ~whereiseveryone/toys@lists.sr.ht adding your channel as an entry in channels.scm.
This package provides a Go linter for common logger libraries:
kitlogkloglogrlog/slogzap
Reports unused function parameters and results in Go code.
This package is a linter that checks for unnecessary newlines at the start and end of functions, if, for, etc.
clock is a small library for mocking time in Go. It provides an interface around the standard library's time package so that the application can use the realtime clock while tests can use the mock clock.
Package gotesttools is a collection of packages to augment testing and support common patterns.
Packages:
assert- compare values and fail the test when a comparison failsenv- test code which uses environment variablesfs- create temporary files and compare a filesystem tree to an expected valuegolden- compare large multi-line strings against values frozen in golden filesicmd- execute binaries and test the outputpoll- test asynchronous code by polling until a desired state is reachedskip- skip a test and print the source code of the condition used to skip the test
Package oglemock provides a mocking framework for unit tests.
Package clock provides an abstraction for system time that enables testing of time-sensitive code.
This package provides the source code of a linter for Golang.
Ginkgo is a Behaviour-Driven Development testing framework for Go. It builds on top of Go's builtin testing library and is complemented by the Gomega matcher library.
This package is a linter that detects struct contained context.Context field. This is discouraged technique in favour of passing context as first argument of method or function. For rationale please read Contexts and structs the Go blog post.
The gls package provides a way to store a retrieve values per-goroutine.
This package checks your Go codebase for code smells that may prove to be a hindrance to internationalization and/or localization.
Package spew implements a deep pretty printer for Go data structures to aid in debugging.
A quick overview of the additional features spew provides over the built-in printing facilities for Go data types are as follows:
Pointers are dereferenced and followed.
Circular data structures are detected and handled properly.
Custom Stringer/error interfaces are optionally invoked, including on unexported types.
Custom types which only implement the Stringer/error interfaces via a pointer receiver are optionally invoked when passing non-pointer variables.
Byte arrays and slices are dumped like the hexdump -C command which includes offsets, byte values in hex, and ASCII output (only when using Dump style).
This package implements an extension of Table-Driven Testing. Instead of building and iterating over a table in the test code, the input is further separated into files (or inline strings). For certain classes of tests, this can significantly reduce the friction involved in writing and reading these tests.
This package implements a functionality to run tests and report the results, converting test names WrittenInCamelCase into ordinary sentences.
Package sloglint implements the sloglint analyzer. The log/slog API allows two different types of arguments: key-value pairs and attributes.
Package randfill is a library for populating go objects with random values.
This package provides scripts and workflows to automate common routines for Golang projects via modular Makefiles and GitHub Actions.
This package implements a functionality to converts Go values at runtime into their @codego/ast equivalent,which may be used in debugging and testing, as a more comprehensive and configurable version of the fmt package's %+v and %#v formatting directives. It is similar to e.g. repr in Python.
This package provides a test library for the Go language.
Package testfs provides a simple fs.FS which is contained in a test (using testing.TB's TempDir) and with a few helper methods.
Refactored, tested variant of the goroutine leak detector found in both net/http and the cockroachdb source tree.
This package provides utilities for Go modules.
This package is a linter that detects struct contained context.Context field. This is discouraged technique in favour of passing context as first argument of method or function. For rationale please read Contexts and structs the Go blog post.