mirror of https://github.com/dsoprea/go-exif.git
undefined/type.go: Formalized requirement for undefined-types being Stringers
parent
9a4bd45d39
commit
351f1b7549
|
@ -350,7 +350,7 @@ func TranslateStringToType(tagType TagTypePrimitive, valueString string) (value
|
|||
}()
|
||||
|
||||
if tagType == TypeUndefined {
|
||||
// TODO(dustin): Circle back to this.
|
||||
// The caller should just call String() on the decoded type.
|
||||
log.Panicf("undefined-type values are not supported")
|
||||
}
|
||||
|
||||
|
|
|
@ -1,14 +1,8 @@
|
|||
package exifundefined
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"crypto/sha1"
|
||||
"encoding/binary"
|
||||
|
||||
"github.com/dsoprea/go-logging"
|
||||
|
||||
"github.com/dsoprea/go-exif/v2/common"
|
||||
)
|
||||
|
||||
|
@ -24,6 +18,7 @@ type UndefinedValueEncoder interface {
|
|||
|
||||
type EncodeableValue interface {
|
||||
EncoderName() string
|
||||
String() string
|
||||
}
|
||||
|
||||
// UndefinedValueEncoder knows how to decode an undefined-type tag's value from
|
||||
|
|
Loading…
Reference in New Issue