view

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: LGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package view provides the view command run function.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConv     = errors.New("convert cannot be nil")
	ErrPipeRead = errors.New("could not read text stream from piped stdin (standard input)")
)

Functions

func Pipe added in v0.10.0

func Pipe(w io.Writer, cmd *cobra.Command, args ...string) error

Pipe parses a standard input (stdin) stream of data.

func Run

func Run(w io.Writer, cmd *cobra.Command, args ...string) error

Run parses the arguments supplied with the view command.

func Transform

func Transform(c *convert.Convert, in, out encoding.Encoding, b ...byte,
) ([]rune, error)

Transform bytes into Unicode runes. The optional in encoding argument is the bytes original character encoding. The optional out encoding argument is the encoding to replicate. When no encoding arguments are provided, UTF-8 unicode encoding is used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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