v1.16.9
ADDED: * netx.IsPub * encodingx/hexx Rest are mostly small corrections and docs
This commit is contained in:
+846
-679
File diff suppressed because it is too large
Load Diff
+1299
-476
File diff suppressed because it is too large
Load Diff
+2072
-1205
File diff suppressed because it is too large
Load Diff
+3
-13
@@ -1,14 +1,4 @@
|
||||
- osReadFileBytes
|
||||
- osReadFileStr
|
||||
- osReadDir
|
||||
- base64, base16, base32, hex, pem encoding/decoding tpl funcs
|
||||
-- template hashing functions?
|
||||
|
||||
- `dns*` funcs (net)
|
||||
- `url*` funcs (net/url)
|
||||
- `uuid*` funcs (github.com/google/uuid and r00t2.io/goutils/uuidx)
|
||||
|
||||
- `http*` funcs:
|
||||
-- `httpReq`: returns a net/http.Request
|
||||
-- `http<Method>`: performs <Method> (? seems redundant if exposing httpReq)
|
||||
-- also have `resty*` funcs?
|
||||
|
||||
- i should probably explicitly provide a "safe" set vs. "full" set. can just mod the map func getters to accept a "safeOnly" bool param.
|
||||
- os env vars
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
[source,subs="+attributes,+post_replacements",opts="novalidate"]
|
||||
.Function Signature
|
||||
----
|
||||
func {func}{sig}
|
||||
----
|
||||
+56
-13
@@ -21,6 +21,8 @@ import (
|
||||
`github.com/shirou/gopsutil/v4/sensors`
|
||||
`go4.org/netipx`
|
||||
`r00t2.io/goutils/netx`
|
||||
`r00t2.io/goutils/netx/dnsx`
|
||||
`r00t2.io/goutils/stringsx`
|
||||
`r00t2.io/goutils/timex`
|
||||
`r00t2.io/sysutils`
|
||||
)
|
||||
@@ -71,18 +73,44 @@ var (
|
||||
/*
|
||||
Networking (r00t.io/goutils/netx)
|
||||
*/
|
||||
"netxAddrRfc": netx.AddrRfc,
|
||||
"netxCidr4IpMask": netx.Cidr4ToIPMask,
|
||||
"netxCidr4Mask": netx.Cidr4ToMask,
|
||||
"netxCidr4Str": netx.Cidr4ToStr,
|
||||
"netxFamilyVer": netx.FamilyToVer,
|
||||
"netxGetAddrFam": netx.GetAddrFamily,
|
||||
"netxGetIpFam": netx.GetIpFamily,
|
||||
"netxIpRfc": netx.IpRfc,
|
||||
"netxIpRfcStr": netx.IpRfcStr,
|
||||
"netxIpStripRfc": netx.IpStripRfcStr,
|
||||
"netxIp4MaskCidr": netx.IPMask4ToCidr,
|
||||
"netxIp4MaskMask": netx.IPMask4ToMask,
|
||||
"netxAddrRfc": netx.AddrRfc,
|
||||
"netxCidr4IpMask": netx.Cidr4ToIPMask,
|
||||
"netxCidr4Mask": netx.Cidr4ToMask,
|
||||
"netxCidr4Str": netx.Cidr4ToStr,
|
||||
"netxFamilyVer": netx.FamilyToVer,
|
||||
"netxGetAddrFam": netx.GetAddrFamily,
|
||||
"netxGetIpFam": netx.GetIpFamily,
|
||||
"netxIpRfc": netx.IpRfc,
|
||||
"netxIpRfcStr": netx.IpRfcStr,
|
||||
"netxIpStripRfc": netx.IpStripRfcStr,
|
||||
"netxIp4MaskCidr": netx.IPMask4ToCidr,
|
||||
"netxIp4MaskMask": netx.IPMask4ToMask,
|
||||
"netxIp4MaskStr": netx.IPMask4ToStr,
|
||||
"netxIpVerStr": netx.IpVerStr,
|
||||
"netxIsBrktd6": netx.IsBracketedIp6,
|
||||
"netxIsIp": netx.IsIpAddr,
|
||||
"netxIsPfx": netx.IsPrefixNet,
|
||||
"netxMask4Cidr": netx.Mask4ToCidr,
|
||||
"netxMask4StrCidr": netx.Mask4StrToCidr,
|
||||
"netxMask4StrIpMask": netx.Mask4StrToIPMask,
|
||||
"netxMask4StrMask": netx.Mask4StrToMask,
|
||||
"netxVerFamily": netx.VerToFamily,
|
||||
/*
|
||||
Networking (r00t.io/goutils/netx/dnsx)
|
||||
*/
|
||||
"dnsxPtrAddr": dnsx.AddrFromPtr,
|
||||
"dnsxAddrPtr": dnsx.AddrToPtr,
|
||||
"dnsxStrWire": dnsx.DnsStrToWire,
|
||||
"dnsxWireStr": dnsx.DnsWireToStr,
|
||||
"dnsxPtrIp": dnsx.IpFromPtr,
|
||||
"dnsxIpPtr": dnsx.IpToPtr,
|
||||
"dnsxIsFqdn": dnsx.IsFqdn,
|
||||
"dnsxIsTxt": dnsx.IsFqdnDefinedTxt,
|
||||
"dnsxIsNsec3": dnsx.IsFqdnNsec3,
|
||||
"dnsxIsSrv": dnsx.IsFqdnSrv,
|
||||
"dnsxIsWild": dnsx.IsFqdnWildcard,
|
||||
"dnsxIsLbl": dnsx.IsLabel,
|
||||
"dnsxIsPtr": dnsx.IsPtr,
|
||||
/*
|
||||
Numbers/Math
|
||||
*/
|
||||
@@ -171,9 +199,24 @@ var (
|
||||
// .../sensors
|
||||
"psSensorTemps": sensors.SensorsTemperatures,
|
||||
/*
|
||||
Strings
|
||||
Strings (Standalone)
|
||||
*/
|
||||
"extIndent": extIndent, // PR in: https://github.com/Masterminds/sprig/pull/468
|
||||
/*
|
||||
Strings (r00t.io/goutils/stringsx)
|
||||
*/
|
||||
"strsxIsAscii": stringsx.IsAscii,
|
||||
"strsxIsAsciiBuf": stringsx.IsAsciiBuf,
|
||||
"strsxIsAsciiSpcl": stringsx.IsAsciiSpecial,
|
||||
"strsxIsAsciiBufSpcl": stringsx.IsAsciiBufSpecial,
|
||||
"strsxLenSpl": stringsx.LenSplit,
|
||||
"strsxLenSplStr": stringsx.LenSplitStr,
|
||||
"strsxPad": stringsx.Pad,
|
||||
"strsxRedact": stringsx.Redact,
|
||||
"strsxRev": stringsx.Reverse,
|
||||
"strsxTrimLns": stringsx.TrimLines,
|
||||
"strsxTrimSpcLft": stringsx.TrimSpaceLeft,
|
||||
"strsxTrimSpcRt": stringsx.TrimSpaceRight,
|
||||
/*
|
||||
System/Platform
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user