diff options
| author | demo <demo@antix1> | 2026-05-30 22:57:17 -0400 |
|---|---|---|
| committer | demo <demo@antix1> | 2026-05-30 22:57:17 -0400 |
| commit | a2a3a28b48eea53f4212877c4fbc4fc8d0865f64 (patch) | |
| tree | 1efca889ac7b99116753143a84d8c6807632e7fe | |
| parent | 1d90d466a8f6f23c4cedcfc97438fc10bbd80d3e (diff) | |
| -rw-r--r-- | hamlet.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -10,6 +10,10 @@ func (a Assertion) Assert() bool { return a.truth } +func (a Assertion) Deny() bool { + return !a.truth +} + func Present(v any) Assertion { return Assertion{!reflect.ValueOf(v).IsZero()} } |
