files

package
v0.0.0-...-282c629 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package transform provides helper functions to manage files.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoSrc    = errors.New("utf-deconfuse: no file provided")
	ErrBadSrc   = errors.New("utf-deconfuse: file open failed")
	ErrBadDst   = errors.New("utf-deconfuse: output creation failed")
	ErrWriteDst = errors.New("utf-deconfuse: output write failed")
)

Functions

func SetupDst

func SetupDst(path string) (dst *os.File, err error)

Creates a new file on given path or truncates if file already exists. If path is empty, defaults to stdout.

func SetupSrc

func SetupSrc(path string) (src *os.File, err error)

Opens file under path. Returns ErrNoSrc if path is empty, or ErrBadSrc if it cannot open the file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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