Versions in this module Expand all Collapse all v0 v0.2.0 Dec 1, 2020 Changes in this version + var AllCharsets = []maps.Map + var BasicCharsets = []maps.Map + var RegexpDigitNumber = regexp.MustCompile("^\\d+$") + var UsualCharsets = []maps.Map + func CheckPid(path string) *os.Process + func CloseHTTPClient(client *http.Client) + func ConvertJSONObjectSafely(obj interface{}) interface + func CopyStructObject(destPtr, sourcePtr interface{}) + func DeletePid(path string) error + func DumpResponse(resp *http.Response) (header []byte, body []byte, err error) + func FormatAddress(addr string) string + func FormatAddressList(addrList []string) []string + func Get(object interface{}, keys []string) interface + func ListenSignal(f func(sig os.Signal), sig ...os.Signal) + func LockFile(fp *os.File) error + func MapKeys(s maps.Map) (keys []string) + func MapToObjectJSON(fromMap map[string]interface{}, toPtr interface{}) error + func MapToObjectYAML(fromMap map[string]interface{}, toPtr interface{}) error + func MatchDomains(patterns []string, domain string) (isMatched bool) + func MatchKeyword(source, keyword string) bool + func NewHTTPClient(timeout time.Duration) *http.Client + func NotifySignal(proc *os.Process, sig os.Signal) error + func ObjectToMapJSON(fromPtr interface{}, toMap *map[string]interface{}) error + func ParseVariables(source string, replacer func(varName string) (value string)) string + func Recover() + func SetRLimit(limit uint64) error + func SetSuitableRLimit() + func SharedHttpClient(timeout time.Duration) *http.Client + func TmpFile(path string) string + func UnlockFile(fp *os.File) error + func UnsafeBytesToString(bs []byte) string + func UnsafeStringToBytes(s string) []byte + func WebRoot() string + func WritePid(path string) error + func WritePpid(path string) error + type BytePool struct + func NewBytePool(maxSize, length int) *BytePool + func (this *BytePool) Destroy() + func (this *BytePool) Get() (b []byte) + func (this *BytePool) Put(b []byte) + func (this *BytePool) Size() int + type Command struct + Args []string + Name string + type CommandExecutor struct + func NewCommandExecutor() *CommandExecutor + func (this *CommandExecutor) Add(command string, arg ...string) + func (this *CommandExecutor) Run() (output string, err error) + type CommandHelp struct + func NewCommandHelp() *CommandHelp + func (this *CommandHelp) Append(appendString string) *CommandHelp + func (this *CommandHelp) Option(code string, description string) *CommandHelp + func (this *CommandHelp) Print() + func (this *CommandHelp) Product(product string) *CommandHelp + func (this *CommandHelp) Usage(usage string) *CommandHelp + func (this *CommandHelp) Version(version string) *CommandHelp + type CommandHelpOption struct + Code string + Description string + type ObjectPool struct + func NewObjectPool(maxSize int, newFunc func() interface{}) *ObjectPool + func (this *ObjectPool) Destroy() + func (this *ObjectPool) Get() (obj interface{}) + func (this *ObjectPool) Put(obj interface{}) + func (this *ObjectPool) Size() int + type ServiceManager struct + Description string + Name string + func NewServiceManager(name, description string) *ServiceManager + func (this *ServiceManager) Close() error + func (this *ServiceManager) Execute(args []string, r <-chan svc.ChangeRequest, changes chan<- svc.Status) (ssec bool, errno uint32) + func (this *ServiceManager) Install(exePath string, args []string) error + func (this *ServiceManager) Log(msg string) + func (this *ServiceManager) LogError(msg string) + func (this *ServiceManager) PauseWindow() + func (this *ServiceManager) Run() + func (this *ServiceManager) Start() error + func (this *ServiceManager) Uninstall() error + type Ticker struct + C <-chan time.Time + S chan bool + func Every(duration time.Duration, f func(ticker *Ticker)) *Ticker + func NewTicker(duration time.Duration) *Ticker + func (this *Ticker) Next() bool + func (this *Ticker) Stop() + type VariableHolder string