util

package
v0.0.0-...-7d424f8 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeExtension

func ChangeExtension(filename, newExt string) string

func DelDir

func DelDir(path string) bool

递归删除目录

func ExecuteCmd

func ExecuteCmd(arg string)

func Exists

func Exists(path string) bool

判断所给路径文件/文件夹是否存在

func GetCurrentDirectory

func GetCurrentDirectory() string

func GetFileList

func GetFileList(path string) []string

func GetFileSize

func GetFileSize(path string) (int64, bool)

获取单个文件的大小

func IsDir

func IsDir(path string) bool

判断所给路径是否为文件夹

func IsFile

func IsFile(path string) bool

判断所给路径是否为文件

func LowerFirstWord

func LowerFirstWord(str string) string

首字母小写

func MkDir

func MkDir(path string) bool

func R1C1ToA1

func R1C1ToA1(r, c int) string

r,c都是base1

func StringEscape

func StringEscape(s string) string

func StringToPrimitive

func StringToPrimitive(str string, value interface{}) (error, bool)

func UpperFirstWord

func UpperFirstWord(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