v0.0.516
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 4m25s

This commit is contained in:
2024-09-25 21:43:41 +02:00
parent ebba6545a3
commit 721c176337
4 changed files with 19 additions and 5 deletions

View File

@@ -57,3 +57,11 @@ func (m JsonOpt[T]) MustValue() T {
}
return m.value
}
func (m JsonOpt[T]) IfSet(fn func(v T)) bool {
if !m.isSet {
return false
}
fn(m.value)
return true
}