feat(chore): Add tests and use "any" instead of "inteface"

This commit is contained in:
2025-06-04 15:17:26 +02:00
parent a8341a9b44
commit b143f743ef
6 changed files with 83 additions and 10 deletions

View File

@@ -87,7 +87,7 @@ func UnWrapTPL(in []byte) []byte {
return regexpLineWrap.ReplaceAll(in, []byte(" }}"))
}
func ToK8SYaml(obj interface{}) ([]byte, error) {
func ToK8SYaml(obj any) ([]byte, error) {
if o, err := yaml.Marshal(obj); err != nil {
return nil, nil
} else {