Initial commit
This commit is contained in:
9
vendor/github.com/carlmjohnson/requests/internal/minitrue/minitrue.go
generated
vendored
Normal file
9
vendor/github.com/carlmjohnson/requests/internal/minitrue/minitrue.go
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
// Package minitrue - Whatever the Package holds to be the truth, is truth.
|
||||
package minitrue
|
||||
|
||||
func Cond[T any](val bool, a, b T) T {
|
||||
if val {
|
||||
return a
|
||||
}
|
||||
return b
|
||||
}
|
||||
Reference in New Issue
Block a user