simplefiletest

package module
v0.0.0-...-d26d9a9 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: Unlicense Imports: 6 Imported by: 2

README

simple-filetest

just simple file testing with go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirExists

func DirExists(dir string) bool

DirExists checks if the dir exists in path.

func Exists

func Exists(f string) bool

Exists checks if `f` exists in the path or not.

func FileExists

func FileExists(file string) bool

FileExists checks if file exists in path.

func HasContents

func HasContents(filename string, compare string) (bool, error)

HasContents attempts to open and check the contents of `filename` if it includes `compare`.

func SimilarContents

func SimilarContents(filename string, compare string) (bool, error)

SimilarContents attempts to open and compare the contents of `filename` to `compare`. It returns true and nil if it is similar while false and an error otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

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