Documentation
¶
Index ¶
- Variables
- func ClearFolder(path string)
- func ContainsKey(src map[string]interface{}, key string) bool
- func ConvertToHump(src string) string
- func CopyFile(sourcePath string, newPath string) bool
- func DefaultEmptyArray(kvs map[string]interface{}, key string) interface{}
- func DefaultValue(kvs map[string]interface{}, key string) interface{}
- func DeleteFile(path string) bool
- func EndWith(src string, dst string) bool
- func ErrorWrapper(error interface{}) *stackError.Error
- func Escaped(x string) interface{}
- func ExecuteCommand(command string, params ...string) (string, error)
- func ExecuteFullCommand(fullCommand string) (string, error)
- func GetOrDefault(kvs map[string]string, key string, defaultV string) string
- func GitDownload(remoteUrl string, username string, password string, checkoutAs string, ...) *errors.Error
- func Insert(slice []interface{}, index int, value interface{}) []interface{}
- func IsArray(param interface{}) bool
- func IsDirExists(dir string) bool
- func IsEmpty(src string) bool
- func IsFileExists(file string) bool
- func IsMap(param interface{}) bool
- func IsString(src interface{}) bool
- func LoadConfig(configPath string) map[string]string
- func LogInit(logPath string)
- func NewFile(baseDir string, name string, isFolder bool) bool
- func PackageSystemEnvIntoParam(params map[string]interface{})
- func PrintErrorStack(error interface{})
- func StackString(error interface{}) string
- func StartWith(src string, dst string) bool
- func SvnDownload(remoteUrl string, username string, password string, checkoutAs string, ...) *errors.Error
- func Transform(src map[string][]string) map[string]interface{}
- func Unescaped(x string) interface{}
- type ConcurrentMap
- func (m *ConcurrentMap) ContainsKey(key string) bool
- func (m *ConcurrentMap) Get(key string) interface{}
- func (m *ConcurrentMap) Iterator() <-chan Entry
- func (m *ConcurrentMap) Put(key string, value interface{})
- func (m *ConcurrentMap) Remove(key string)
- func (m *ConcurrentMap) ToPrettyString() string
- func (m *ConcurrentMap) ToString() string
- type Entry
Constants ¶
This section is empty.
Variables ¶
View Source
var Lang = ""
全局变量
Functions ¶
func ClearFolder ¶
func ClearFolder(path string)
func ContainsKey ¶
func ConvertToHump ¶
func DefaultEmptyArray ¶
func DefaultValue ¶
func DeleteFile ¶
func ErrorWrapper ¶
func ErrorWrapper(error interface{}) *stackError.Error
func ExecuteFullCommand ¶
* eg: ExecuteCommand("ls -a -l") * you shouldn't use this function while any param of the command has blank. * eg: ExecuteCommand("echo 'abc def'")
func GetOrDefault ¶
* map扩展
func GitDownload ¶
func GitDownload(remoteUrl string, username string, password string, checkoutAs string, project string) *errors.Error
* git工具
func IsDirExists ¶
func IsFileExists ¶
func PackageSystemEnvIntoParam ¶
func PackageSystemEnvIntoParam(params map[string]interface{})
* 系统变量,插件可能会用到
func StackString ¶
func StackString(error interface{}) string
Types ¶
type ConcurrentMap ¶
type ConcurrentMap struct {
// contains filtered or unexported fields
}
* 并发map
func MakeConcurrentMap ¶
func MakeConcurrentMap() *ConcurrentMap
func (*ConcurrentMap) ContainsKey ¶
func (m *ConcurrentMap) ContainsKey(key string) bool
func (*ConcurrentMap) Get ¶
func (m *ConcurrentMap) Get(key string) interface{}
func (*ConcurrentMap) Iterator ¶
func (m *ConcurrentMap) Iterator() <-chan Entry
func (*ConcurrentMap) Put ¶
func (m *ConcurrentMap) Put(key string, value interface{})
func (*ConcurrentMap) Remove ¶
func (m *ConcurrentMap) Remove(key string)
func (*ConcurrentMap) ToPrettyString ¶
func (m *ConcurrentMap) ToPrettyString() string
func (*ConcurrentMap) ToString ¶
func (m *ConcurrentMap) ToString() string
Click to show internal directories.
Click to hide internal directories.