Files
podman/libpod/common/common.go
Valentin Rothberg 6c030cd573 fix a number of godot issues
Still an unknown number remains but I am running out of patience.
Adding dots is not the best use of my time.

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2022-03-22 13:04:35 +01:00

17 lines
405 B
Go

package common
// IsTrue determines whether the given string equals "true".
func IsTrue(str string) bool {
return str == "true"
}
// IsFalse determines whether the given string equals "false".
func IsFalse(str string) bool {
return str == "false"
}
// IsValidBool determines whether the given string equals "true" or "false".
func IsValidBool(str string) bool {
return IsTrue(str) || IsFalse(str)
}