modulepackage
0.0.0-20240819164739-f47aed85de5a
Repository: https://github.com/unix-world/smartgo.git
Documentation: pkg.go.dev
# README
smartgo
GO Module for Smart.Framework
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
REQUIRE: go 1.19 or later.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IMPORTANT: the output must be trimmed for the padding added when encrypted ; expects B64 data, so trim is OK !.
IMPORTANT: the input will be padded ; expects B64 data !.
set terminal theme Dark (bg:black ; fg:white) : print("\033[0;37;40m").
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
func FatalError(logMessages ...interface{}) {.
GenerateRandomBytes returns securely generated random bytes.
GenerateRandomString returns a securely generated random string.
return: err, pubKeyPEM, privKeyPEM.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
domain can be: domain or IPv4 / IPv6.
returns: `/` or `/path/extra` or `/path/extra/`.
returns: `http://` or `https://`.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
returns: `` or `?` or `?a` or `?a=` or `?a=b` or `?a=b&` or `?a=b&c` or `?a=b&c=` or `?a=b&c=d`.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
call as: defer PanicHandler().
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ex call (req.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
this is a safer replacement for filepath.ToSlash(p), because is not OS Context Aware.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ChunkSplit chunk_split().
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
case insensitive, find position of first occurrence of string in a string ; multi-byte safe return -1 if can not find the substring or the position of needle in haystack.
case insensitive replacer.
case insensitive replacer.
No description provided by the author
Strlen strlen().
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
case sensitive, find position of first occurrence of string in a string ; multi-byte safe return -1 if can not find the substring or the position of needle in haystack.
No description provided by the author
No description provided by the author
No description provided by the author
case sensitive replacer.
case sensitive replacer.
No description provided by the author
case insensitive, find position of last occurrence of string in a string ; multi-byte safe return -1 if can not find the substring or the position of needle in haystack.
case sensitive, find position of last occurrence of string in a string ; multi-byte safe return -1 if can not find the substring or the position of needle in haystack.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MbStrlen mb_strlen().
StrWordCount str_word_count().
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
works for HTML and XML too ...
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
The ASCII Bell Character \a.
The Backspace Character \b.
The Carriage Return character \r.
don't change !!.
No description provided by the author
No description provided by the author
INTERNAL FLAG FOR CMD FORCE EXIT HAMMER.
No description provided by the author
-- FIXED DATE CONSTANTS REFERENCE VALUES ..
GO EPOCH: NO TIME, NO TZ OFFSET.
GO EPOCH: WITH TIME, NO TZ OFFSET.
GO EPOCH: WITH TIME, WITH TZ OFFSET.
GO EPOCH: RFC1123.
No description provided by the author
No description provided by the author
Key Derive EK Iterations.
Key Derive EV Iterations.
Key Derive PW Iterations.
Key Derive Min Length.
Key Derive Min Length.
Key Derive Pre-Key Length.
No description provided by the author
The Form Feed Character \f or \x0C.
The Horizontal Tab character \t.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The Line Feed character \n.
No description provided by the author
THE NULL BYTE character \x00 or \000.
fixed length ; {{{SYNC-AUTHADM-PASS-LENGTH}}} ; if lower then padd to right with * ; {{{SYNC-AUTHADM-PASS-PADD}}}.
Password Plain Max Lentgth.
Password Plain Min Lentgth.
go lang only (no PHP), curent v3, argon2id password ; must be the same length as PASSWORD_PREFIX_VERSION.
{{{SYNC-AUTHADM-PASS-PREFIX}}}.
Safe App Namespace Regex.
SAFETY: SAFE Cross Platform Character Set for FileSystems: Smart + MsDOS + Linux/Unix + Windows (intersect) ; like above, just missing slash /.
Safe UserName Regex.
SAFETY: SAFE Cross Platform Character Set for FileSystems: Smart + MsDOS + Linux/Unix + Windows (intersect).
Safe VarName Regex.
CONFORMANCE: SUPPORT ONLY THESE CHARACTERS IN HTML BASE PATHS.
SAFETY: SUPPORT ONLY THESE CHARACTERS IN FILE SYSTEM FILE AND DIR NAMES ..
SAFETY: SUPPORT ONLY THESE CHARACTERS IN HEADER KEY VALUES.
SAFETY: SUPPORT ONLY THESE CHARACTERS IN NET HOST NAMES AS RFC ; if a hostname have upper characters must be converted to all lower characters ; if a hostname have unicode characters must be converted using punnycode ...
SAFETY: SUPPORT ONLY THESE CHARACTERS IN SAFE FLOAT (ex: JSON).
SAFETY: SUPPORT ONLY THESE CHARACTERS IN FILE SYSTEM PATHS ...
Default REGEXP2 Recursion Limit: 800K.
Default REGEXP2 Max Timeout 1 Second(s).
fixed salt prefix.
fixed salt separator.
fixed salt suffix.
compatibility, v1 ; blowfish only.
compatibility, v2 ; blowfish only.
current, v3 ; threefish, twofish, blowfish.
compatibility, v1.
compatibility, v2.
current, v3.
current, v1 (default+blowfish) ; encrypt + decrypt ; Blowfish 56 (448) + TwoFish 32 (256) = 88 (704).
current, v1 (default) ; encrypt + decrypt.
current, v1 1024 (argon2id+twofish/256+blowfish/448) ; encrypt + decrypt.
current, v1 1024 (default+twofish/256+blowfish/448) ; encrypt + decrypt.
current, v1 1024 (argon2id) ; encrypt + decrypt.
current, v1 1024 (default) ; encrypt + decrypt.
compatibility, v1 ; decrypt only.
compatibility, v2 ; decrypt only.
current, v3 ; encrypt + decrypt.
compatibility, v1, unarchive only.
compatibility, v2, unarchive only.
current, v3 ; archive + unarchive.
Reference Unit.
No description provided by the author
PHP COMPATIBILITY.
No description provided by the author
No description provided by the author
The Vertical Tab character \v or \x0B.
# Variables
No description provided by the author
# Structs
PRIVATE.