util

package
Version: v0.0.0-...-6d6101f Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StripANSI = regexp.MustCompile("\x1b\\[\\d+(;\\d+)*m")

StripANSI is a regexp that matches ANSI escape codes for the purpose of removing them where necessary.

Functions

func EnsureDir

func EnsureDir(path string) error

EnsureDir ensures that a directory is in place before opening a file there.

func Logo() string

func StripANSIFromFile

func StripANSIFromFile(in, out string) error

StripANSIFromFile reads in contents from one file line by line, strips them of their ANSI escape codes, then writes them to another.

Types

This section is empty.

Jump to

Keyboard shortcuts

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