common

package
v0.0.0-...-451a7c7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(path string) (bool, error)

文件是否存在,不存在固定返回false,返回true时可能是文件存在,也可能有错误发生。

path string 文件路径 返回 bool 文件不存在返回false 返回 error 文件存在返回nil,如果有错误返回错误内容

func InitLog

func InitLog(configFile, logFile string)

func JoinPath

func JoinPath(path ...string) string

合成路径

func PrintErr

func PrintErr()

Types

This section is empty.

Jump to

Keyboard shortcuts

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