TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Go 1.23 Released

180 点作者 ankraft9 个月前

12 条评论

hu39 个月前
Opt-in telemetry. A very rare sight these days. Glad to see.<p>Not even Mozilla does that with Firefox [1].<p>&gt; Starting in Go 1.23, the Go toolchain can collect usage and breakage statistics that help the Go team understand how the Go toolchain is used and how well it is working. We refer to these statistics as Go telemetry.<p>&gt; Go telemetry is an opt-in system, controlled by the go telemetry command. By default, the toolchain programs collect statistics in counter files that can be inspected locally but are otherwise unused (go telemetry local).<p>&gt; To help us keep Go working well and understand Go usage, please consider opting in to Go telemetry by running go telemetry on. In that mode, anonymous counter reports are uploaded to telemetry.go.dev weekly, where they are aggregated into graphs and also made available for download by any Go contributors or users wanting to analyze the data. See “Go Telemetry” for more details about the Go Telemetry system.<p>[1] &quot;Firefox collects telemetry data by default. We collect this data to help improve the performance and stability of Firefox. Telemetry data is made up of two data sets: interaction data and technical data.&quot; - <a href="https:&#x2F;&#x2F;support.mozilla.org&#x2F;en-US&#x2F;kb&#x2F;telemetry-clientid" rel="nofollow">https:&#x2F;&#x2F;support.mozilla.org&#x2F;en-US&#x2F;kb&#x2F;telemetry-clientid</a>
评论 #41239028 未加载
评论 #41238812 未加载
评论 #41238572 未加载
评论 #41238437 未加载
评论 #41239124 未加载
评论 #41238367 未加载
评论 #41238962 未加载
nalgeon9 个月前
If you find the official release notes a bit dry (they really are), I&#x27;ve prepared an interactive version with lots of examples:<p>- Iterators (range &#x2F; types &#x2F; pull &#x2F; slices &#x2F; maps).<p>- Timer changes (garbage collection and reset&#x2F;stop behavior).<p>- Canonical values with the `unique` package.<p>- HTTP cookie handling.<p>- Copying directories.<p>- Slices and atomics changes.<p><a href="https:&#x2F;&#x2F;antonz.org&#x2F;go-1-23" rel="nofollow">https:&#x2F;&#x2F;antonz.org&#x2F;go-1-23</a>
评论 #41239078 未加载
评论 #41239926 未加载
评论 #41239107 未加载
评论 #41268050 未加载
epage9 个月前
As someone who was advocating for a similar warning in Rust (finally added to clippy in 1.78), I&#x27;m glad to see this improvement in `go vet`<p>&gt; The go vet subcommand now includes the stdversion analyzer, which flags references to symbols that are too new for the version of Go in effect in the referring file. (The effective version is determined by the go directive in the file’s enclosing go.mod file, and by any &#x2F;&#x2F;go:build constraints in the file.) &gt; &gt; For example, it will report a diagnostic for a reference to the reflect.TypeFor function (introduced in go1.22) from a file in a module whose go.mod file specifies go 1.21.
评论 #41240116 未加载
fourseventy9 个月前
I don&#x27;t like the &quot;range-over-func&quot; addition. I feel like it is adding complexity and syntactic sugar to the language that has thus far been mostly avoided.
评论 #41240038 未加载
评论 #41238668 未加载
评论 #41238503 未加载
评论 #41239816 未加载
评论 #41243529 未加载
评论 #41238666 未加载
minkles9 个月前
&gt; Go telemetry is an opt-in system<p>Great job Go. Hat tip and respect for this. Unlike .Net. I will enable this where it is appropriate.
评论 #41239054 未加载
评论 #41238869 未加载
评论 #41238651 未加载
rkharsan649 个月前
From the release notes [1], which I think this post should actually point to:<p>&gt; For backward compatibility, existing usages of &#x2F;&#x2F;go:linkname found in a large open-source code corpus remain supported. Any new references to standard library internal symbols will be disallowed.<p>How does this work? Does the compiler have a whitelist of allowed uses?<p>[1]: <a href="https:&#x2F;&#x2F;go.dev&#x2F;doc&#x2F;go1.23" rel="nofollow">https:&#x2F;&#x2F;go.dev&#x2F;doc&#x2F;go1.23</a>
评论 #41239342 未加载
scotthew19 个月前
direct link to the release notes: <a href="https:&#x2F;&#x2F;go.dev&#x2F;doc&#x2F;go1.23" rel="nofollow">https:&#x2F;&#x2F;go.dev&#x2F;doc&#x2F;go1.23</a>
评论 #41238370 未加载
divan9 个月前
boring &lt;3
评论 #41238418 未加载
ronsor9 个月前
Adding support for encrypted client hello to the TLS library is pretty exciting. I&#x27;ve been waiting a while for that.
euroderf9 个月前
I&#x27;d like to see a best-practices range-compatible depth-first preorder push iterator for a tree. Any tree implementation would do for purposes of exposition; for example package ast, where node order is important, unlike package filepath. FWIW there is current discussion in issue 64341 (and also 61405).
评论 #41244568 未加载
389 个月前
Why is it not dated?
ffpip9 个月前
Any good resources on learning go?<p>Has anyone had any luck with the YT videos or courses way?
评论 #41238722 未加载
评论 #41239396 未加载
评论 #41238744 未加载