Categorygithub.com/dsoprea/go-iptc
modulepackage
0.0.0-20200610044640-bc9ca208b413
Repository: https://github.com/dsoprea/go-iptc.git
Documentation: pkg.go.dev

# README

Build Status Coverage Status Go Report Card GoDoc

Overview

This project provides functionality to parse a series of IPTC records/datasets. It also provides name resolution, but other constraints/validation is not yet implemented (though there is structure present that can accommodate this when desired/required).

# Functions

DecodeTag parses one tag from the stream.
DumpBytesToString returns a stringified list of hex-encoded bytes.
GetDictionaryFromParsedTags returns all tags.
GetModuleRootPath returns the root-path of the module.
GetSimpleDictionaryFromParsedTags returns a dictionary of tag names to tag values, where all values are strings and any tag that had a non-printable value is omitted.
GetTagInfo return the info for the given tag.
GetTestAssetsPath returns the path of the test-assets.
GetTestDataFilepath returns the file-path of the common test-data.
ParseStream parses a serial sequence of tags and tag data out of the stream.

# Variables

ErrInvalidTagMarker indicates that the tag can not be parsed because the tag boundary marker is not the expected value.
ErrTagNotStandard indicates that the given tag is not known among the documented standard set.

# Structs

StreamTagInfo encapsulates the properties of each tag.
StreamTagKey is a convenience type that lets us key our index with a high- level type.
Tag describes one tag read from the stream.

# Type aliases

ParsedTags is the complete, unordered set of tags parsed from the stream.
TagData is a convenience wrapper around a byte-slice.