Versions in this module Expand all Collapse all v0 v0.0.0 Jul 25, 2018 Changes in this version + var CharsetCharDigit = append(CharsetChars, CharsetDigit) + var CharsetCharLowerCase = []rune("abcdefghijklmnopqrstuvwxyz") + var CharsetCharUpperCase = []rune("ABCDEFGHIJKLMNOPARSTUVWXYZ") + var CharsetChars = append(CharsetCharUpperCase, CharsetCharLowerCase) + var CharsetDigit = []rune("0123456789") + var CharsetHex = []rune("0123456789abcdef") + func DistinctStrings(elems ...string) []string + func GetPathOfSelf() (dir string, err error) + func GzipCompress(in []byte) (out []byte, err error) + func GzipDecompress(in []byte) (out []byte, err error) + func RandomString(size int, charset []rune) string + func ToStruct(v map[string]interface{}) *st.Struct + func ToValue(v interface{}) *st.Value + type BashScriptStage struct + Name string + Scripts []string + func NewBashScriptStage(name string, scripts ...string) *BashScriptStage + func (e *BashScriptStage) AddScripts(scripts ...string) *BashScriptStage + func (e *BashScriptStage) EncodedScripts(job string) []string + func (e *BashScriptStage) SetScripts(scripts ...string) *BashScriptStage + type BashScriptsExecutor struct + Env []string + Id string + Stages []BashScriptStage + func NewBashScriptsExecutor(id string, env ...string) *BashScriptsExecutor + func (e *BashScriptsExecutor) AddEnv(env ...string) *BashScriptsExecutor + func (e *BashScriptsExecutor) AddScriptsInStage(name string, scripts ...string) *BashScriptsExecutor + func (e *BashScriptsExecutor) AddStage(stage *BashScriptStage) *BashScriptsExecutor + func (e *BashScriptsExecutor) EncodedScript() string + func (e *BashScriptsExecutor) Perform() ([]byte, error) + func (e *BashScriptsExecutor) SetEnv(env ...string) *BashScriptsExecutor + type FairQueue struct + func NewFairQueue() *FairQueue + func (q *FairQueue) Close() + func (q *FairQueue) Enqueue(f func()) + func (q *FairQueue) Perform() + func (q *FairQueue) Wait() + type SingletonDesc struct + func NewSingleton() *SingletonDesc + func (s *SingletonDesc) Acquire(f func()) + type WaitGroupWithState struct + func NewWaitGroupWithState() *WaitGroupWithState + func (wg *WaitGroupWithState) Add(delta int64) int64 + func (wg *WaitGroupWithState) Done() int64 + func (wg *WaitGroupWithState) State() int64 + func (wg *WaitGroupWithState) Wait()