Registry / testing / go-playground-assert-v2

go-playground-assert-v2

JSON →
library2.2.0gogounverified

Package assert provides some basic assertion functions for testing and also provides the building blocks for creating your own more complex validations.

go get github.com/go-playground/assert/v2
INSTALL
IMPORT
SIG · GO-PLAYGROUND-ASSE
G
go-playground-assert-v2
testinggov2.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

assert
github.com/go-playground/assert/v2

Uses assert.Equal to check equality in a test.

package main import ( "testing" "github.com/go-playground/assert/v2" ) func TestSomething(t *testing.T) { assert.Equal(t, 1, 1) }
Debug
Known issues
breakingVersion v2 uses Go modules with a major version suffix; import path must include /v2.
fix
Use the correct import path: github.com/go-playground/assert/v2
affects: >=2.0.0
Upgrade
Version history
2.2.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
go-playground-assert-v2 — go get go-playground-assert-v2 · libregistry