Me
Sounds good. Can you make a function to clone an existing FileNode, initializing Addr to nil and Children to be a clone of the Children of the source node?
// FileNode represents a node in the file system structure, which can be a file or a directory.
type FileNode struct {
Type NodeType
Addr *grits.FileAddr // Address of the CachedFile in BlobStore
Children map[string]*FileNode
}
GPT
In DigitalOcean and similar cloud service providers, resources like droplets (virtual machines) continue to incur charges even when they are powered off because the underlying physical resources (CPU, RAM, disk space) allocated to the droplet are reserved and cannot be allocated to another customer. This policy ensures that you can quickly power on the droplet again without data loss or having to go through the setup process again. However, to avoid charges for resources you're not actively using, it's recommended to delete any droplets or resources that are no longer needed. Remember, data backups and snapshots should be kept if you need to preserve data from the droplet before deletion.
Edit: It's still going. I assumed it was just a one-off, and asked about JSON serialization in Go, and it showed me this:
Then it tried to run some python code, then admitted that the python code hadn't worked, and then it answered my Go question.
Everything Wordpress is heavily infested with that. However you don't have to let it impact you -- it kind of looks to me like they pressure commercial vendors to put their stuff under the GPL if they're wanting to offer a free version, so there's a robust ecosystem of actually-FOSS tooling for it. My experience has been that it's always worked pretty well in practice; you just have to keep your nope-I'm-not-paying-for-your-paid-version goggles firmly affixed. (Also, side note, GPT does an excellent job of writing little functions.php snippets for you to enable particular custom functionality for your Wordpress install when you need it.)