convert

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2025 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertDir

func ConvertDir(convertDirOpts *ConvertDirOpts) error

ConvertDir converts files in a directory.

func ConvertFile

func ConvertFile(convertFileOpts *ConvertFileOpts) (error, fileActionType)

Types

type ConvertDirOpts

type ConvertDirOpts struct {
	Command         string
	Dir             string
	Sources         []string
	Except          []string
	TargetExtension string
	OutDir          string
	DeleteOriginal  bool
	Quiet           bool
}

ConvertDirOpts hold options used when converting files in a directory.

type ConvertFileOpts

type ConvertFileOpts struct {
	Command         string
	Path            string
	TargetExtension string
	OutDir          string
	DeleteOriginal  bool
	Quiet           bool
}

ConvertFileOpts hold options used when converting files.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL