undefined/type.go: Formalized requirement for undefined-types being Stringers

for/master
Dustin Oprea 2020-01-05 17:02:30 -05:00
parent 9a4bd45d39
commit 351f1b7549
2 changed files with 2 additions and 7 deletions

View File

@ -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")
}

View File

@ -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