ifd_builder_test.go: Simplified example.

pull/12/head
Dustin Oprea 2019-02-26 12:58:27 -05:00
parent 467b10f9db
commit 8dfa922c47
1 changed files with 1 additions and 4 deletions

View File

@ -1826,11 +1826,8 @@ func ExampleIfdBuilder_SetStandardWithName() {
results, err := childIfd.FindTagWithName(tagName)
log.PanicIf(err)
// We need a new one of these with the updated EXIF data.
itevr = NewIfdTagEntryValueResolver(updatedRawExif, index.RootIfd.ByteOrder)
for _, ite := range results {
value, err := itevr.Value(ite)
value, err := childIfd.TagValue(ite)
log.PanicIf(err)
stringValue := value.(string)