def format_datetime(datetime_value):
    """Converts a datetime value into a string using the format which Go understands

    :param datetime_value: Datetime value
    :type datetime_value: datetime.datetime

    :return: String representation of the datetime value
    :rtype: string
    """
    datetime_string_value = datetime_value.strftime("%Y-%m-%dT%H:%M:%S")

    # NOTE: Go can parse only strings where the timezone contains a colon (e.g., -07:00)
    # Unfortunately, Python doesn't support such format and we have to do it manually
    # We assume that all the dates are in UTC
    datetime_string_value += "+00:00"

    return datetime_string_value