fileutil

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2018 License: MIT Imports: 5 Imported by: 28

Documentation

Overview

Helpers for working with files and filesystems

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTerminal

func IsTerminal() bool

func MustReadAll

func MustReadAll(filename string) []byte

func MustReadAllString

func MustReadAllString(filename string) string

func ReadAll

func ReadAll(filename string) ([]byte, error)

func ReadAllString

func ReadAllString(filename string) (string, error)

Types

type RewriteFileSystem

type RewriteFileSystem struct {
	FileSystem http.FileSystem
	Find       *regexp.Regexp
	Replace    string
	MustMatch  bool
}

func (RewriteFileSystem) Open

func (self RewriteFileSystem) Open(name string) (http.File, error)

Jump to

Keyboard shortcuts

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