mirror of
https://github.com/foomo/posh.git
synced 2025-10-16 12:45:38 +00:00
21 lines
253 B
Go
21 lines
253 B
Go
package check
|
|
|
|
type Status string
|
|
|
|
const (
|
|
StatusSuccess = "✅"
|
|
StatusFailure = "❌"
|
|
)
|
|
|
|
func (s Status) String() string {
|
|
return string(s)
|
|
}
|
|
|
|
func StatusFromBool(v bool) Status {
|
|
if v {
|
|
return StatusSuccess
|
|
} else {
|
|
return StatusFailure
|
|
}
|
|
}
|