Versions in this module Expand all Collapse all v0 v0.1.0 Apr 27, 2024 Changes in this version + const ExitCodeInvalidArgs + const ExitCodeInvalidFormats + const ExitCodeUnknownError + func Do(ctx context.Context, args []string) error + func DoWithOS() + func ExitCode(from error) int + func ExtractFormat(arg string) (path, format string) + func Help() string + func RegisterWorker(inputFormat, outputFormat string, worker Worker) error + type Context struct + func NewContext(parent context.Context) *Context + func (c *Context) Cancel() + func (c *Context) Deadline() (deadline time.Time, ok bool) + func (c *Context) Done() <-chan struct{} + func (c *Context) Err() error + func (c *Context) Value(key any) any + type ExitCodeBearer interface + ExitCode func() int + type ExitError struct + Code int + Err error + func NewExitError(code int, err error) *ExitError + func (e *ExitError) ErrString() string + func (e *ExitError) Error() string + func (e *ExitError) ExitCode() int + func (e *ExitError) Unwrap() error + type Work interface + Context func() context.Context + Formats func() (input, output string) + Input func() []byte + Output func(data []byte) error + func NewWorkFromOS(ctx context.Context, input, output string) (w Work, err error) + type Worker interface + DoWork func(Work) error + func RegisteredWorker(inputFormat, outputFormat string) Worker