<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Data on Gopher Coding</title><link>https://gophercoding.com/tags/data/</link><description>Recent content in Data on Gopher Coding</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Wed, 17 Jan 2024 20:33:54 +0000</lastBuildDate><atom:link href="https://gophercoding.com/tags/data/index.xml" rel="self" type="application/rss+xml"/><item><title>Find the Min or Max Value in a Slice (New to Go 1.21)</title><link>https://gophercoding.com/using-min-max-on-slice/</link><pubDate>Sun, 23 Jul 2023 07:00:00 +0000</pubDate><guid>https://gophercoding.com/using-min-max-on-slice/</guid><description>&lt;p>The latest Go release, 1.21, has introduced two new built-in functions: &lt;code>min()&lt;/code> and &lt;code>max()&lt;/code>. These functions have long been used in many other languages, such as Python and JavaScript, and are now welcome additions to Go.&lt;/p>
&lt;p>The min() and max() functions have been introduced to simplify the process of finding the smallest and largest numbers in a set, respectively. There was &lt;a href="https://github.com/golang/go/issues/59488#issuecomment-1548505279">plenty of talk&lt;/a> as to whether these should be included as &amp;ldquo;built-ins&amp;rdquo; or introduced into the cmp package.&lt;/p></description></item></channel></rss>