ioutils

package
v0.0.0-...-6986f26 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(target interface{}, obj interface{}) (bool, error)

判断obj是否在target中,target支持的类型arrary,slice,map

func CreateDir

func CreateDir(path string) error

CreateDir 文件夹创建

func EnsureFile

func EnsureFile(file string) (*os.File, error)

func EnsurePath

func EnsurePath(path string) error

func GetFileExtension

func GetFileExtension(path string) string

func GetFileType

func GetFileType(input []byte, def string) string

func IsExist

func IsExist(f string) bool

IsExist 判断文件夹/文件是否存在 存在返回 true

func Trim

func Trim(str string) string

利用正则表达式压缩字符串,去除空格或制表符

Types

This section is empty.

Jump to

Keyboard shortcuts

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