unexpected-go
unexpected-go copied to clipboard
Unexpected Golang behaviors
https://gist.github.com/Enrico2/261e4fa3215c9795f2fbbd7caac9cf5f Run this to see the difference: https://go.dev/play/p/vyUcfGHTWNm
See [example](https://goplay.tools/snippet/QlKnnL3wIy3): ```go package main import ( "fmt" ) func main() { fmt.Printf("%v, %[1]v, %v, %[1]v, %v\n", 1, 2, 3, 4, 5) fmt.Printf("%v, %[1]v, %v, %[3]v, %v\n", 1, 2, 3,...
See https://goplay.tools/snippet/BdzKJNbcaEM and document this.
Even though it's properly documented (see [here](https://golang.org/src/builtin/builtin.go#L152)), IMHO the behaviour of the `len` built-in method for the case when the parameter is a string is a candidate for this repository....
Bumps [rexml](https://github.com/ruby/rexml) from 3.2.6 to 3.2.8. Release notes Sourced from rexml's releases. REXML 3.2.8 - 2024-05-16 Fixes Suppressed a warning REXML 3.2.7 - 2024-05-16 Improvements Improve parse performance by using...
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.16.4 to 1.16.5. Release notes Sourced from nokogiri's releases. v1.16.5 / 2024-05-13 Security [CRuby] Vendored libxml2 is updated to address CVE-2024-34459. See GHSA-r95h-9x8f-r3f7 for more information. Dependencies...
not the structs themselves. This makes it hard to inline the latter to reduce allocations.