Open
Description
I propose adding a package to atomically create or replace a file to the golang.org/x/ namespace.
Moving the required logic into a Go package slightly reduces code length and duplication across programs, but more importantly documents the intricacies of this pattern in a central place.
An implementation of such a package can be found at https://go-review.googlesource.com/c/exp/+/72379
Metadata
Metadata
Assignees
Type
Projects
Status
Incoming