15 lines
293 B
Go
15 lines
293 B
Go
package sprigx
|
|
|
|
// Nop explicitly performs a NO-OP and returns an empty string, allowing one to override "unsafe" functions.
|
|
func Nop(obj ...any) (s string) {
|
|
return
|
|
}
|
|
|
|
// metaIsNil returns true if obj is explicitly nil.
|
|
func metaIsNil(obj any) (isNil bool) {
|
|
|
|
isNil = obj == nil
|
|
|
|
return
|
|
}
|