Documentation ¶
Index ¶
- Variables
- func Command(cmd string, args map[string]string, params ...string) (err error)
- func CommandExec(cmd string)
- func CommandExecNoPanic(cmd string)
- func CommandGet(cmd string) (result string, err error)
- func CompressFile(filename string)
- func CompressResource(srcDir string, tarDir string, cacheDir string, ignore *regexp.Regexp)
- func CompressResourceSelf(srcDir string, ignore *regexp.Regexp)
- func CopyFile(source, dest string)
- func FormatPath(p string) string
- func GetDirFiles(dirname string, ignoreDir []string, ignoreReg *regexp.Regexp) (files []string, err error)
- func JsonCombineDir(src string, tar string)
- func JsonModify(file string, key string, val interface{})
- func RemoveDir(dir string)
- func RemoveFile(target string)
- func ReplaceText(file string, old string, new string)
- func ReplaceTextFunc(file string, old string, repl func(string) string)
- func Sync(source, target string, info bool) (err error)
- func SyncDir(source string, target string, ignore *regexp.Regexp)
- func SyncFile(source string, target string)
- func SyncIgnore(source, target string, info bool, ignoreDir []string) (err error)
- func SyncResource(src string, target string, config string, group string, atlas string, ...)
- type AtlasItem
- type ConfigItem
- type DirItem
- type SyncItem
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultIgnoreReg *regexp.Regexp = regexp.MustCompile(`/\.`)
)
View Source
var (
SyncResourcePngOptLevel = 2
)
Functions ¶
func CompressResource ¶
func GetDirFiles ¶
func JsonModify ¶
/ Json-修改json文件file的值 / 会格式化文件
func ReplaceTextFunc ¶
/ 替换文本,通过func
func SyncIgnore ¶
拷贝文件 要拷贝的文件路径 拷贝到哪里
Types ¶
type AtlasItem ¶
type ConfigItem ¶
func NewConfigItem ¶
func NewConfigItem() *ConfigItem
Click to show internal directories.
Click to hide internal directories.