Documentation
¶
Overview ¶
Package exiftool provides a thin wrapper around ExifTool.
Index ¶
- Variables
- func Command(stdin io.Reader, arg ...string) (stdout []byte, err error)
- func CommandAsync(ctx context.Context, arg ...string) (stdin io.WriteCloser, stdout io.ReadCloser, err error)
- func CommandContext(ctx context.Context, stdin io.Reader, arg ...string) (stdout []byte, err error)
- func Unmarshal(data []byte, m map[string][]byte) error
- type Server
Constants ¶
This section is empty.
Variables ¶
var ( Exec string = "exiftool" // Application to execute. Arg1 string // Optional first argument. Config string // ExifTool config file to use. )
Configure ExifTool.
Functions ¶
func Command ¶
Command runs an ExifTool command with the given arguments and stdin and returns its stdout.
func CommandAsync ¶
func CommandAsync(ctx context.Context, arg ...string) (stdin io.WriteCloser, stdout io.ReadCloser, err error)
Command runs an ExifTool command with the given arguments asynchronously, and returns pipes connected to its stdin and stdout. Writing to stdin and reading from stdout should be done concurrently.
func CommandContext ¶ added in v0.3.0
CommandContext is like Command but includes a context.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server wraps an instance of ExifTool that can process multiple commands sequentially. Servers avoid the overhead of loading ExifTool for each command. Servers are safe for concurrent use by multiple goroutines.
func (*Server) Close ¶
Close causes ExifTool to exit immediately. Close does not wait until ExifTool has actually exited.