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 additions to Go's stdlib testing.
go-snaps is a Go implementation of Jest snapshot testing.
This package implements value validations for structs and individual fields based on tags. It has the following unique features:
Cross Field and Cross Struct validations by using validation tags or custom validators
Slice, Array and Map diving, which allows any or all levels of a multidimensional field to be validated
Ability to dive into both map keys and values for validation
Handles type interface by determining it's underlying type prior to validation
Handles custom field types such as sql driver Valuer
Alias validation tags, which allows for mapping of several validations to a single tag for easier defining of validations on structs
Extraction of custom defined Field Name e.g. can specify to extract the JSON name while validating and have it available in the resulting FieldError
Customizable i18n aware error messages.
Default validator for the gin web framework
Package fake is the fake data generatror for go (Golang), heavily inspired by forgery and ffaker Ruby gems.
The deep package provides the deep.Equal function which is like reflect.DeepEqual but returns a list of differences. This is helpful when comparing complex types like structures and maps.
Package testza is a full-featured testing framework for Go. It integrates with the default test runner, so you can use it with the standard go test tool. Testza contains easy to use methods, like assertions, output capturing, mocking, and much more.
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.
This package provides a toolkit for parsing Go language panic stack traces. It simplifies the traces to make salient information more visible and aid debugging.
This package implements a parallel testing framework for Go.
Rapid is a Go library for property-based testing.
Rapid checks that properties you define hold for a large number of automatically generated test cases. If a failure is found, rapid automatically minimizes the failing test case before presenting it.
Features:
imperative Go API with type-safe data generation using generics
data generation biased to explore "small" values and edge cases more thoroughly
fully automatic minimization of failing test cases
persistence and automatic re-running of minimized failing test cases
support for state machine ("stateful" or "model-based") testing
no dependencies outside the Go standard library
Package stub provides helper functions to replace global variables for testing, and restore them afterwards.
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 st, pronounced ghost, is a tiny test framework for making short, useful assertions in your Go tests. Assert(t, have, want) and Refute(t, have, want) abort a test immediately with t.Fatal. Expect(t, have, want) and Reject(t, have, want) allow a test to continue, reporting failure at the end with t.Error. They print nice error messages, preserving the order of have (actual result) before want (expected result) to minimize confusion.
This package takes the results from multiple go test -coverprofile runs and merges them into one profile.
Package gunit provides testing package hooks and convenience functions for writing tests in an xUnit style.
Staticcheck is a state of the art linter for the Go programming language. Using static analysis, it finds bugs and performance issues, offers simplifications, and enforces style rules.
Package reqtrace contains a very simple request tracing framework.
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.
Assertion library that:
makes spotting differences in equality much easier
uses repr and diffmatchpatch to display structural differences in colour
aborts tests on first assertion failure
This package implements a functionality to generate random user-agent strings which may be used in mock tests.
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.
Gofuzz is a library for populationg Go objects with random values for the purpose of fuzz testing.
Package httpmock provides tools for mocking HTTP responses. It implements exact URL and regexp matches.