Documentation
¶
Overview ¶
utilities.go For utility/helper functions to support the jamf pro package
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶
Base64Decode takes a base64 encoded string and decodes it back to its original binary form.
func Base64Encode ¶
Base64Encode reads a file from the given file path and returns its base64 encoded string.
func ConvertFromXMLSafeString ¶
ConvertFromXMLSafeString reverses the process of ConvertToXMLSafeString. It replaces XML entity references in a string back to their original characters. This is useful when reading XML data that contains entity references and converting them back to normal characters.
func ConvertToXMLSafeString ¶
ConvertToXMLSafeString replaces disallowed XML characters in a string with their corresponding XML entity references. This function is useful for preparing a string to be safely included in an XML document.
func EnsureXMLSafeString ¶
EnsureXMLSafeString checks if a string contains disallowed XML characters. If it does, it converts the string to an XML-safe format using ConvertToXMLSafeString. This function is useful for ensuring that strings are safe for inclusion in XML documents.
Types ¶
This section is empty.