Versions in this module Expand all Collapse all v0 v0.0.0 Dec 15, 2023 Changes in this version + const BLACK + const BLUE + const BOLD + const BROWN + const CYAN + const GREEN + const LIGHT_CYAN + const LIGHT_PURPLE + const PLAIN + const PURPLE + const RED + var PatternDataset = regexp.MustCompile("/[-a-zA-Z_0-9*]+/[-a-zA-Z_0-9*]+/[-a-zA-Z_0-9*]+") + var PatternFile = regexp.MustCompile("/[a-zA-Z_0-9].*\\.root$") + var PatternFloat = regexp.MustCompile("[+-]?([0-9]*[.])?[0-9]+") + var PatternInt = regexp.MustCompile("(^[0-9-]$|^[0-9-][0-9]*$)") + var PatternRun = regexp.MustCompile("[0-9]+") + var PatternURL = regexp.MustCompile("(https|http)://[-A-Za-z0-9_+&@#/%?=~_|!:,.;]*[-A-Za-z0-9+&@#/%=~_|]") + var TIMEOUT int + var UrlCounter uint32 + var VERBOSE int + var Verbose int + func BasePath(base, api string) string + func CastFloat(val interface{}) (float64, error) + func CastInt(val interface{}) (int, error) + func CastInt64(val interface{}) (int64, error) + func CastString(val interface{}) (string, error) + func CheckEntries(list1, list2 []string) bool + func Color(col, text string) string + func ColorURL(rurl string) string + func ConvertFloat(val string) string + func EqualLists(list1, list2 []string) bool + func Equal[T ListEntry](a, b []T) bool + func ErrPropagate(api string) + func ErrPropagate2Channel(api string, ch chan interface{}) + func Error(args ...interface{}) + func Expire(expire int) int64 + func FileName(fname string) string + func FindFiles(root string) []string + func FindInList(a string, arr []string) bool + func FullPath(fname string) string + func GetEnv(key string) string + func GetHash(data []byte) string + func GoDeferFunc(api string, f func()) + func HttpClient() *http.Client + func HttpGet(rurl string, headers map[string]string) (*http.Response, error) + func HttpPost(rurl string, headers map[string]string, buffer *bytes.Buffer) (*http.Response, error) + func HttpPostForm(rurl string, headers map[string]string, formData url.Values) (*http.Response, error) + func InList[T ListEntry](a T, list []T) bool + func Insert(arr []interface{}, val interface{}) []interface + func IsFloat(val string) bool + func IsInt(val string) bool + func List2Set[T ListEntry](arr []T) []T + func ListFiles(dir string) []string + func MapIntKeys(rec map[int]interface{}) []int + func MapKeys(rec map[string]interface{}) []string + func Max(data []interface{}) float64 + func Min(data []interface{}) float64 + func OrderedSet[T ListEntry](list []T) []T + func ParseTmpl(tdir, tmpl string, data interface{}) (string, error) + func PrintSQL(stm string, args []interface{}, msg string) + func RandomString() string + func ReadToken(r string) string + func RecordSize(v interface{}) (int64, error) + func ReplaceBinds(stm string) string + func Response(rurl string, data []byte) []byte + func Set[T ListEntry](arr []T) []T + func SizeFormat(val interface{}) string + func Stack() string + func Sum(data []interface{}) float64 + func TimeFormat(ts interface{}) string + func TmplPage(fsys fs.FS, tmpl string, tmplData TmplRecord) string + func Unix2Time(ts int64) string + func UnixTime(ts string) int64 + func UpdateOrderedDict(omap, nmap map[int][]string) map[int][]string + func Warning(args ...interface{}) + type DevNullWriter string + func (s DevNullWriter) Header() http.Header + func (s DevNullWriter) Write(b []byte) (int, error) + func (s DevNullWriter) WriteHeader(statusCode int) + type GzipReader struct + func (gz GzipReader) Close() error + type GzipWriter struct + GzipWriter *gzip.Writer + Writer http.ResponseWriter + func (g GzipWriter) Header() http.Header + func (g GzipWriter) Write(b []byte) (int, error) + func (g GzipWriter) WriteHeader(statusCode int) + type Int64List []int64 + func (s Int64List) Len() int + func (s Int64List) Less(i, j int) bool + func (s Int64List) Swap(i, j int) + type IntList []int + func (s IntList) Len() int + func (s IntList) Less(i, j int) bool + func (s IntList) Swap(i, j int) + type ListEntry interface + type ResponseType struct + Data []byte + Error error + Status string + StatusCode int + Url string + func FetchResponse(rurl string, args []byte) ResponseType + type StdoutWriter string + func (s StdoutWriter) Header() http.Header + func (s StdoutWriter) Write(b []byte) (int, error) + func (s StdoutWriter) WriteHeader(statusCode int) + type StringList []string + func (s StringList) Len() int + func (s StringList) Less(i, j int) bool + func (s StringList) Swap(i, j int) + type Templates struct + func (q Templates) TextTmpl(fsys fs.FS, tfile string, tmplData map[string]interface{}) string + func (q Templates) Tmpl(fsys fs.FS, tfile string, tmplData map[string]interface{}) string + type TmplRecord map[string]interface + func (t TmplRecord) GetBytes(key string) []byte + func (t TmplRecord) GetElapsedTime() string + func (t TmplRecord) GetError() string + func (t TmplRecord) GetInt(key string) int + func (t TmplRecord) GetString(key string) string