// ⚡️ Fiber is an Express inspired web framework written in Go with ☕️// 🤖 Github Repository: https://github.com/gofiber/fiber// 📌 API Documentation: https://docs.gofiber.iopackage utilsimport ()// AssertEqual checks if values are equalfunc ( testing.TB, , interface{}, ...string) { //nolint:thelper // TODO: Verify if tb can be nilif != nil { .Helper() }ifreflect.DeepEqual(, ) {return } := "<nil>" := "<nil>"if != nil { = reflect.TypeOf().String() }if != nil { = reflect.TypeOf().String() } := "AssertEqual"if != nil { = .Name() } , , , := runtime.Caller(1)varbytes.Bufferconst = 5 := tabwriter.NewWriter(&, 0, 0, , ' ', 0) _, _ = fmt.Fprintf(, "\nTest:\t%s", ) _, _ = fmt.Fprintf(, "\nTrace:\t%s:%d", filepath.Base(), )iflen() > 0 { _, _ = fmt.Fprintf(, "\nDescription:\t%s", [0]) } _, _ = fmt.Fprintf(, "\nExpect:\t%v\t(%s)", , ) _, _ = fmt.Fprintf(, "\nResult:\t%v\t(%s)", , )varstringif := .Flush(); != nil { = .Error() } else { = .String() }if != nil { .Fatal() } else {log.Fatal() //nolint:revive // tb might be nil, so we need a fallback }}
The pages are generated with Goldsv0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.