file

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists added in v1.4.0

func Exists(path string) bool

Exists judge if file exist

func IsDir added in v1.4.0

func IsDir(path string) bool

IsDir judge if dir

func IsFile added in v1.4.0

func IsFile(path string) bool

IsFile judge if file

func SetContent

func SetContent(filename string, pattern string, content string) error

SetContent set file content by pattern

Types

This section is empty.

Jump to

Keyboard shortcuts

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