Versions in this module Expand all Collapse all v0 v0.9.3 Sep 25, 2021 v0.9.1 Sep 20, 2021 Changes in this version + func GetLocalTime(layout, value string) (time.Time, error) v0.8.44 Sep 18, 2021 Changes in this version + const DEUBG + const ERROR + const FATAL + const INFO + const PRINT + const WARN + var Commit string + var DIR = Dir + var Date string + var JSON = jsonUtils + var Log = Logger + var Version string + var XML = xmlUtils + func BasicAuth(username, password string) string + func Catch(name string) + func Close() + func Debug(format string, v ...interface{}) + func Error(format string, v ...interface{}) + func Fatal(format string, v ...interface{}) + func FunName(i interface{}) string + func GenEthAddr(n int) []byte + func GenToken(n int) string + func GenUUID() string + func GetJSON(r io.ReadCloser, v interface{}) error + func H2D16(h string) uint16 + func H2D8(h string) uint8 + func IP4Network2Range(addr, mask net.IP) (net.IP, net.IP) + func IP4Network2RangeN(addr, mask net.IP, n uint32) (net.IP, net.IP) + func Info(format string, v ...interface{}) + func Init(file string, level int) + func IsDigit(s string) bool + func Netmask2Len(s string) int + func ParseIP4Netmask(addr, prefix string) (net.IP, net.IP) + func PreNotify() + func PrettyBytes(b uint64) string + func PrettyDrive(ctl, bus, tgt, unit uint16) string + func PrettyKBytes(k uint64) string + func PrettyPCI(dom, bus, slot, fun uint16) string + func PrettySecs(t uint64) string + func Print(format string, v ...interface{}) + func SavePID(file string) error + func SdNotify() + func SetLog(level int) + func ToBytes(v, u string) uint64 + func ToKiB(v, u string) uint64 + func Wait() + func Warn(format string, v ...interface{}) + type Auth struct + Password string + Type string + Username string + type Dir struct + func (d Dir) ListDirs(dirPth string) (dirs []string, err error) + func (d Dir) ListFiles(dirPth string, suffix string) (files []string, err error) + type Err struct + Code int + Message string + func NewErr(message string, v ...interface{}) (e *Err) + func (e *Err) Error() string + func (e *Err) String() string + type HttpClient struct + Auth Auth + Client *http.Client + Method string + Payload io.Reader + TlsConfig *tls.Config + Url string + func (cl *HttpClient) Close() + func (cl *HttpClient) Do() (*http.Response, error) + type Logger struct + Errors *list.List + FileLog *log.Logger + FileName string + Level int + Lock sync.Mutex + func (l *Logger) Debug(format string, v ...interface{}) + func (l *Logger) Error(format string, v ...interface{}) + func (l *Logger) Fatal(format string, v ...interface{}) + func (l *Logger) Info(format string, v ...interface{}) + func (l *Logger) List() <-chan *Message + func (l *Logger) Print(format string, v ...interface{}) + func (l *Logger) SaveError(level string, format string, v ...interface{}) + func (l *Logger) Warn(format string, v ...interface{}) + type Message struct + Date string + Level string + Message string + type PProf struct + Listen string + func (p *PProf) Start() + type Proxy struct + Auth Auth + Prefix string + Server string + TlsConfig *tls.Config + Url *url.URL + func (pri *Proxy) GetPath(req *http.Request) string + func (pri *Proxy) Initialize() + type ProxyUrl struct + Data interface{} + Filter func(*http.Response, http.ResponseWriter, interface{}) bool + Transport *http.Transport + func (pri *ProxyUrl) Handler(w http.ResponseWriter, req *http.Request) + func (pri *ProxyUrl) Initialize() + func (pri *ProxyUrl) ServeHttp(w http.ResponseWriter, r *http.Request) + type ProxyWs struct + func (pri *ProxyWs) Dial(url_, protocol, origin string) (ws *websocket.Conn, err error) + func (pri *ProxyWs) Socket(ws *websocket.Conn) + type WaitOne struct + func NewWaitOne(n int) *WaitOne + func (w *WaitOne) Done() + func (w *WaitOne) Wait()