Oohh Go 1.24 brings os.Root, which allows you to open a directory and present its contents using the FS (filesystem) interface. It prevents access to files outside the root, meaning malicious/erroneous code will not be able to operate on parts of the filesystem that they should not be touching.
So it's a little sandboxing feature in Go's standard lib. Nice!
Official announcement: https://tip.golang.org/doc/go1.24
https://pkg.go.dev/os@master#Root
via @antonz:
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.