check

package module
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2022 License: BSL-1.0 Imports: 3 Imported by: 1

README

check

Go Reference Go Report Card

About

check is a package for Go to check file content. check is published on https://github.com/vbsw/golib/check and https://gitlab.com/vbsw/golib/check.

Copyright 2022, Vitali Baumtrok (vbsw@mailbox.org).

check is distributed under the Boost Software License, version 1.0. (See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)

check is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Boost Software License for more details.

References

Documentation

Overview

Package check performs checks on files and their content.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileContainsAll

func FileContainsAll(path string, buffer []byte, terms [][]byte) (bool, error)

FileContainsAll returns true, if file exists and contains all terms. If terms empty, false is returned.

func FileContainsAny

func FileContainsAny(path string, buffer []byte, terms [][]byte) (bool, error)

FileContainsAny returns true, if file exists and contains any of terms. If terms empty, false is returned.

func FileExists

func FileExists(path string) bool

FileExists returns true, if file exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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