style: ID instead of Id

This commit is contained in:
2026-02-06 23:45:29 -05:00
parent a2355fcd56
commit 8b80cea32b
3 changed files with 6 additions and 6 deletions

View File

@@ -44,7 +44,7 @@ func (r *Registry) GetDefaultEngine(id string) (Engine, error) {
}
func (r *Registry) ConvertTo(repr Repr, outType string) (Repr, error) {
path, err := r.ConversionPath(repr.Id(), outType)
path, err := r.ConversionPath(repr.ID(), outType)
if err != nil {
return nil, err
}
@@ -61,9 +61,9 @@ func (r *Registry) ConvertTo(repr Repr, outType string) (Repr, error) {
}
func (r *Registry) Marshal(repr Repr) (string, error) {
m, ok := r.marshalers[repr.Id()]
m, ok := r.marshalers[repr.ID()]
if !ok {
return "", fmt.Errorf("no marshaler for '%s'", repr.Id())
return "", fmt.Errorf("no marshaler for '%s'", repr.ID())
}
return m.Encode(repr)