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 webring send a patch to ~whereiseveryone/toys@lists.sr.ht adding your channel as an entry in channels.scm.
This package provides miscellaneous tools that support the Go programming language.
This subrepository holds experimental and deprecated (in the old directory) packages.
Package testfs provides a simple fs.FS which is contained in a test (using testing.TB's TempDir) and with a few helper methods.
Versatile HTTP mocking made easy in Go that works with any net/http based stdlib implementation. Inspired by the Node nock library, it has features like:
Simple and expressive API
Semantic API DSL for declarative HTTP mock declarations
Built-in helpers for easy JSON/XML mocking
Supports persistent and volatile TTL-limited mocks
Full regular expressions capable HTTP request mock matching
Designed for both testing and runtime scenarios
Match request by method, URL params, headers and bodies
Extensible and pluggable HTTP matching rules
Ability to switch between mock and real networking modes
Ability to filter/map HTTP requests for accurate mock matching
Supports map and filters to handle mocks easily
Wide compatible HTTP interceptor using
http.RoundTripperinterfaceWorks with any
net/httpcompatible client, such asgentlemanNetwork timeout/cancelation delay simulation
Extensible and hackable API
pgmockproxy is a PostgreSQL proxy that logs the messages back and forth between the PostgreSQL client and server. This can aid in building a mocking script by running commands against a real server to observe the results. It can also be used to debug applications that speak the PostgreSQL wire protocol without needing to use a tool like Wireshark.
fgprof is a sampling Go profiler providing analyze On-CPU as well as Off-CPU (e.g. I/O) time together.
Go's builtin sampling CPU profiler can only show On-CPU time, but it's better than fgprof at that. Go also includes tracing profilers that can analyze I/O, but they can't be combined with the CPU profiler.
fgprof is designed for analyzing applications with mixed I/O and CPU workloads. This kind of profiling is also known as wall-clock profiling.
A mini testing helper for Go.
It has a simple interface (
is.OKandis.Equal).It plugs into existing Go toolchain (uses
testing.T).It's obvious for newcomers.
It also gives you
is.Panicandis.PanicWithhelpers - because testing panics is ugly.
Package clock provides an abstraction for system time that enables testing of time-sensitive code.
gomock is a mocking framework for the Go programming language. It integrates well with Go's built-in testing package, but can be used in other contexts too.
This package provides a library to generate unified diffs.
This package prints the layout of a struct in Go, which is the byte offset and size of each field, respecting padding. This information is printed in human-readable form by default, or as JSON with the -json flag.
Package quartz is a library for testing time related code. It exports an interface Clock that mimics the standard library time package functions. In production, an implementation that calls thru to the standard library is used. In testing, a Mock clock is used to precisely control and intercept time functions.
This package provide many tools for testifying that your code will behave as you intend.
Features include:
Easy assertions
Mocking
HTTP response trapping
Testing suite interfaces and functions.
pprof is a tool for visualization and analysis of profiling data.
It reads a collection of profiling samples in profile.proto format and generates reports to visualize and help analyze the data. It can generate both text and graphical reports (through the use of the dot visualization package). This package provides an command line interface (CLI) tool.
This package is a simple tracing application that logs messages depending on environment variables. It is very much inspired by git's GIT_TRACE mechanism.
This package implements a functionality for testing socket and HTTP servers in Golang.
go-testmark is a library to parse, patch data and test fixtures from Markdown files, using the testmark format, which itself is a subset of Markdown format.
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 randfill is a library for populating go objects with random values.
GoConvey is a testing tool for Go. It integrates with go test, can show test coverage and has a web user interface that will refresh automatically.
Package testdeep allows flexible deep comparison, it is an adaptation of Perl's Test::Deep perl.
This is a linter for Go source code. Unlike gofmt, it doesn't reformat the source code, it only prints out style mistakes.
This package takes go-structlayout-like JSON and prints an ASCII fraphic representing the memory layout.