v1.16.3
ADDED: * Much more functions to tplx/sprigx
This commit is contained in:
14
tplx/sprigx/funcs_tpl_meta.go
Normal file
14
tplx/sprigx/funcs_tpl_meta.go
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user