style: ID instead of Id
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user