Discover Packages
github.com/TheBoringDude/simple-filetest
package
module
Version:
v0.0.0-...-d26d9a9
Opens a new window with list of versions in this module.
Published: Jun 15, 2021
License: Unlicense
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
README
README
¶
simple-filetest
just simple file testing with go
Expand ▾
Collapse ▴
Documentation
¶
DirExists checks if the dir exists in path.
Exists checks if `f` exists in the path or not.
FileExists checks if file exists in path.
HasContents attempts to open and check the contents of `filename` if
it includes `compare`.
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.