file

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ext

func Ext(file string) string

Ext ...

func ImageType

func ImageType(filePath string) string

ImageType ...

func IsDir

func IsDir(filePath string) bool

IsDir ...

func IsExist

func IsExist(filePath string) bool

IsExist ...

func IsFile

func IsFile(filePath string) bool

IsFile ...

func IsImage

func IsImage(filePath string) bool

IsImage ...

func LineContent

func LineContent(filePath string, numbers ...int) map[int]string

LineContent ...

func LineCount

func LineCount(filePath string) (count int)

LineCount ...

func Read

func Read(filePath string) string

Read ...

func Size

func Size(filePath string) int64

Size ...

func SizeText

func SizeText(size int64) string

SizeText ...

func Write

func Write(filePath, str string) error

Write ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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