package assert

import "github.com/cyphar/filepath-securejoin/pathrs-lite/internal/assert"

Package assert provides some basic assertion helpers for Go.

Index

Functions

func Assert

func Assert(predicate bool, msg any)

Assert panics if the predicate is false with the provided argument.

func Assertf

func Assertf(predicate bool, fmtMsg string, args ...any)

Assertf panics if the predicate is false and formats the message using the same formatting as fmt.Printf.

Source Files

assert.go

Version
v0.6.1 (latest)
Published
Nov 19, 2025
Platform
windows/amd64
Imports
1 packages
Last checked
16 minutes ago

Tools for package owners.