diff --git a/go.mod b/go.mod index 31cf31a..731964a 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/shirou/gopsutil/v4 v4.25.12 go4.org/netipx v0.0.0-20231129151722-fdeea329fbba golang.org/x/sys v0.40.0 - r00t2.io/sysutils v1.16.1 + r00t2.io/sysutils v1.16.2 ) require ( diff --git a/go.sum b/go.sum index e07a91e..12a6440 100644 --- a/go.sum +++ b/go.sum @@ -69,5 +69,3 @@ golang.org/x/sys v0.40.0 h1:DBZZqJ2Rkml6QMQsZywtnjnnGvHza6BTfYFWY9kjEWQ= golang.org/x/sys v0.40.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -r00t2.io/sysutils v1.16.1 h1:GM9fcsIeTKyHEx6IzrFAtycX3FRy7UEWl4SDDHjkEP0= -r00t2.io/sysutils v1.16.1/go.mod h1:Fg7gu0DU63iSaX/jSRE4w4oa+zhHOthFGrS0D9+j+oo= diff --git a/tplx/sprigx/README.html b/tplx/sprigx/README.html index fd46e3e..cc22cad 100644 --- a/tplx/sprigx/README.html +++ b/tplx/sprigx/README.html @@ -559,7 +559,7 @@ pre.rouge .gs {
Brent Saner
bts@square-r00t.net
-Last rendered 2026-01-30 06:35:10 -0500 +Last rendered 2026-01-30 20:21:34 -0500
Table of Contents
@@ -572,12 +572,9 @@ pre.rouge .gs {
  • 3.2. CombinedHtmlFuncMap
  • 3.3. CombinedTxtFuncMap
  • 3.4. FuncMap
  • -
  • 3.5. HtmlFuncMap - -
  • -
  • 3.6. TxtFuncMap
  • +
  • 3.5. HtmlFuncMap
  • +
  • 3.6. Nop
  • +
  • 3.7. TxtFuncMap
  • 4. Template Functions @@ -1074,8 +1071,9 @@ as they wrap this with the appropriate type.

    This function returns a SprigX (html/template).FuncMap.

    - +
    +

    3.6. Nop

    Function Signature
    @@ -1090,9 +1088,8 @@ certain Sprig/SprigX functions that may be deemed "unsafe" and/or to sanitize te

    It will never error or panic, and s is always an empty string.

    -
    -

    3.6. TxtFuncMap

    +

    3.7. TxtFuncMap

    Function Signature
    @@ -3158,7 +3155,7 @@ uniqueness - "June" vs. "July", "March" vs. "May").

    diff --git a/tplx/sprigx/README.md b/tplx/sprigx/README.md index e3c63bc..3211804 100644 --- a/tplx/sprigx/README.md +++ b/tplx/sprigx/README.md @@ -6,7 +6,7 @@ Brent Saner -Last rendered 2026-01-30 06:35:11 -0500 +Last rendered 2026-01-30 20:21:34 -0500
    @@ -26,8 +26,8 @@ Table of Contents - [3.3. `CombinedTxtFuncMap`](#lib_cmbtfmap) - [3.4. `FuncMap`](#lib_fmap) - [3.5. `HtmlFuncMap`](#lib_hfmap) - - [3.5.1. `Nop`](#lib_nop) - - [3.6. `TxtFuncMap`](#lib_tfmap) + - [3.6. `Nop`](#lib_nop) + - [3.7. `TxtFuncMap`](#lib_tfmap) - [4. Template Functions](#fn) - [4.1. Debugging](#fn_dbg) - [4.1.1. `dump`](#fn_dbg_dump) @@ -705,9 +705,11 @@ rel="noopener">(html/template).FuncMap.
    -
    +
    -#### 3.5.1. Nop +
    + +### 3.6. Nop
    @@ -744,11 +746,9 @@ It will **never** error or panic, and `s` is **always** an empty string.
    -
    -
    -### 3.6. TxtFuncMap +### 3.7. TxtFuncMap
    @@ -5296,7 +5296,7 @@ functions as well: diff --git a/tplx/sprigx/funcs_tpl_nums.go b/tplx/sprigx/funcs_tpl_nums.go index f8af167..9cfb7e0 100644 --- a/tplx/sprigx/funcs_tpl_nums.go +++ b/tplx/sprigx/funcs_tpl_nums.go @@ -45,7 +45,7 @@ func numFloat64Str(f float64) (s string) { var bf *big.Float bf = big.NewFloat(f) - s = bf.String() + s = bf.Text('f', -1) return }