mirror of
https://github.com/turbot/steampipe.git
synced 2026-02-17 19:00:12 -05:00
17 lines
318 B
Go
17 lines
318 B
Go
package utils
|
|
|
|
import typehelpers "github.com/turbot/go-kit/types"
|
|
|
|
func SafeStringsEqual(s1, s2 interface{}) bool {
|
|
return typehelpers.SafeString(s1) == typehelpers.SafeString(s2)
|
|
}
|
|
func SafeIntEqual(i1, i2 *int) bool {
|
|
if i1 != nil {
|
|
if i2 == nil {
|
|
return false
|
|
}
|
|
return *i1 == *i2
|
|
}
|
|
return i2 == nil
|
|
}
|