file

package
v0.0.0-...-057734e Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseName

func BaseName(file string) string

BaseName

"/path/to/file.ext" => "file.ext"

func BaseNameWithoutExtentsion

func BaseNameWithoutExtentsion(file string) string

BaseNameWithoutExtentsion

"/path/to/file.ext" => "file"

func Contain

func Contain(file string, search string) bool

func Create

func Create(file string, content ...[]byte) (err error)

func Exists

func Exists(file string) bool

func Extension

func Extension(file string) string

Extentsion

"/path/to/file.ext" => "ext"

func GetLineNum

func GetLineNum(file string) (total int)

func PutContent

func PutContent(file string, data []byte) error

func Remove

func Remove(file string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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