utils

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DIR_MODE = 0777

Variables

This section is empty.

Functions

func CheckError

func CheckError(err error) bool

检查错误

func FileSize

func FileSize(path string, mkdir bool) (int64, bool)

detect if file exists -1, false 不合法的路径 0, false 路径不存在 -1, true 存在文件夹 >=0, true 文件并存在

func GetAbsFile

func GetAbsFile(fname string) string

取得文件的绝对路径

func ToCamel

func ToCamel(name string) string

func ToPlural

func ToPlural(name string) string

func ToSingular

func ToSingular(name string) string

func ToSnake

func ToSnake(name string) string

func TrimTail

func TrimTail(lines string) string

func WrapWith

func WrapWith(name, left, right 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