You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fields of DateRange that we're not writing out as text include:
Duration, Planned
Custom attributes
CueCommand
CueCommand
Need to work out under which conditions to write it out. If CuiIn or CueOut are set, we cannot write out CueCommand as that's invalid.
Another bit of error handling might be to check that CueCommand and/or CueIn/Out have a valid value set in the Splice.Type.
Custom
We'll need a type switch on the value, and error out if we get anything we can't reliably turn into text.
I don't think we'll be able quoted versus unquoted strings. Quick sketch:
switch v.(type) {
case float32:
return fmt.Sprintf("%03f"...
case string:
return fmt.Sprintf("%q" ...)
case int:
return fmt.Sprintf("%d", ...
default:
return fmt.Errorf("attribute %s: cannot marshal %T to text", v)
}
The text was updated successfully, but these errors were encountered:
In particular: we always need to write ID and Start attributes, and
here are some special rules when EndOnNext is set. This serves as prep for work on
References: #19
Fields of DateRange that we're not writing out as text include:
CueCommand
Need to work out under which conditions to write it out. If CuiIn or CueOut are set, we cannot write out CueCommand as that's invalid.
Another bit of error handling might be to check that CueCommand and/or CueIn/Out have a valid value set in the Splice.Type.
Custom
We'll need a type switch on the value, and error out if we get anything we can't reliably turn into text.
I don't think we'll be able quoted versus unquoted strings. Quick sketch:
The text was updated successfully, but these errors were encountered: