utils

package
v0.0.0-...-2fd8956 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoBuild

func AutoBuild()

自动编译

func GetAppName

func GetAppName() string

获取应用名称

func GetFileModTime

func GetFileModTime(path string) (int64, error)

获取文件修改时间

func GetGOPATH

func GetGOPATH() string

获取环境变量 gopath

func GetRunPath

func GetRunPath() string

获取运行目录

func Kill

func Kill()

杀死进程

func PrintErrorAndExit

func PrintErrorAndExit(message, errorTemplate string)

func Restart

func Restart(appName string)

重启

func Start

func Start(appname string)

启动

func Tmpl

func Tmpl(text string, data interface{})

模板解析

func WatchPath

func WatchPath(path string) error

监控文件夹

Types

This section is empty.

Jump to

Keyboard shortcuts

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