v1.16.6
FIXED: * tplx/sprigx float to string non-truncating was... truncating. it no longer is.
This commit is contained in:
@@ -559,7 +559,7 @@ pre.rouge .gs {
|
||||
<div class="details">
|
||||
<span id="author" class="author">Brent Saner</span><br>
|
||||
<span id="email" class="email"><a href="mailto:bts@square-r00t.net">bts@square-r00t.net</a></span><br>
|
||||
<span id="revdate">Last rendered 2026-01-30 06:35:10 -0500</span>
|
||||
<span id="revdate">Last rendered 2026-01-30 20:21:34 -0500</span>
|
||||
</div>
|
||||
<div id="toc" class="toc2">
|
||||
<div id="toctitle">Table of Contents</div>
|
||||
@@ -572,12 +572,9 @@ pre.rouge .gs {
|
||||
<li><a href="#lib_cmbhfmap">3.2. <code>CombinedHtmlFuncMap</code></a></li>
|
||||
<li><a href="#lib_cmbtfmap">3.3. <code>CombinedTxtFuncMap</code></a></li>
|
||||
<li><a href="#lib_fmap">3.4. <code>FuncMap</code></a></li>
|
||||
<li><a href="#lib_hfmap">3.5. <code>HtmlFuncMap</code></a>
|
||||
<ul class="sectlevel3">
|
||||
<li><a href="#lib_nop">3.5.1. <code>Nop</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#lib_tfmap">3.6. <code>TxtFuncMap</code></a></li>
|
||||
<li><a href="#lib_hfmap">3.5. <code>HtmlFuncMap</code></a></li>
|
||||
<li><a href="#lib_nop">3.6. <code>Nop</code></a></li>
|
||||
<li><a href="#lib_tfmap">3.7. <code>TxtFuncMap</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#fn">4. Template Functions</a>
|
||||
@@ -1074,8 +1071,9 @@ as they wrap this with the appropriate type.</p>
|
||||
<div class="paragraph">
|
||||
<p>This function returns a SprigX <a href="https://pkg.go.dev/html/template#FuncMap" target="_blank" rel="noopener"><code>(html/template).FuncMap</code></a>.</p>
|
||||
</div>
|
||||
<div class="sect3">
|
||||
<h4 id="lib_nop"><a class="link" href="#lib_nop">3.5.1. <code>Nop</code></a></h4>
|
||||
</div>
|
||||
<div class="sect2">
|
||||
<h3 id="lib_nop"><a class="link" href="#lib_nop">3.6. <code>Nop</code></a></h3>
|
||||
<div class="listingblock">
|
||||
<div class="title">Function Signature</div>
|
||||
<div class="content">
|
||||
@@ -1090,9 +1088,8 @@ certain Sprig/SprigX functions that may be deemed "unsafe" and/or to sanitize te
|
||||
<p>It will <strong>never</strong> error or panic, and <code>s</code> is <strong>always</strong> an empty string.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sect2">
|
||||
<h3 id="lib_tfmap"><a class="link" href="#lib_tfmap">3.6. <code>TxtFuncMap</code></a></h3>
|
||||
<h3 id="lib_tfmap"><a class="link" href="#lib_tfmap">3.7. <code>TxtFuncMap</code></a></h3>
|
||||
<div class="listingblock">
|
||||
<div class="title">Function Signature</div>
|
||||
<div class="content">
|
||||
@@ -3158,7 +3155,7 @@ uniqueness - "June" vs. "July", "March" vs. "May").</p>
|
||||
</div>
|
||||
<div id="footer">
|
||||
<div id="footer-text">
|
||||
Last updated 2026-01-30 06:31:37 -0500
|
||||
Last updated 2026-01-30 06:49:10 -0500
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
<span id="author" class="author">Brent Saner</span>
|
||||
<span id="email" class="email"><bts@square-r00t.net></span>
|
||||
<span id="revdate">Last rendered 2026-01-30 06:35:11 -0500</span>
|
||||
<span id="revdate">Last rendered 2026-01-30 20:21:34 -0500</span>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -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"><code>(html/template).FuncMap</code></a>.
|
||||
|
||||
</div>
|
||||
|
||||
<div class="sect3">
|
||||
</div>
|
||||
|
||||
#### <a href="#lib_nop" class="link">3.5.1. <code>Nop</code></a>
|
||||
<div class="sect2">
|
||||
|
||||
### <a href="#lib_nop" class="link">3.6. <code>Nop</code></a>
|
||||
|
||||
<div class="listingblock">
|
||||
|
||||
@@ -744,11 +746,9 @@ It will **never** error or panic, and `s` is **always** an empty string.
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="sect2">
|
||||
|
||||
### <a href="#lib_tfmap" class="link">3.6. <code>TxtFuncMap</code></a>
|
||||
### <a href="#lib_tfmap" class="link">3.7. <code>TxtFuncMap</code></a>
|
||||
|
||||
<div class="listingblock">
|
||||
|
||||
@@ -5296,7 +5296,7 @@ functions as well:
|
||||
|
||||
<div id="footer-text">
|
||||
|
||||
Last updated 2026-01-30 06:31:37 -0500
|
||||
Last updated 2026-01-30 06:49:10 -0500
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user