diff --git a/utils/utils.go b/utils/utils.go index f79f5d5..e98f675 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -197,3 +197,13 @@ func SaveFile(fileName string, data []byte) error { return nil } + +func BoolPointerToString(value *bool) string { + if value == nil { + return "null" + } + if *value { + return "true" + } + return "false" +}