Go coreapi persistent node creation

Hello all, I have a very simple question:

I want to use ipfs as a library in GO to spawn a node in a separate process in my app and then to upload some files.
My problem is that, after creating the node with core.NewNode() I can’t figure out how to export the necessary node data (I’m guessing the private key) so that the next time the app is started, the same node could be spawned.

Could someone please paste a code snippet for this purpose? (so how to export, and then on node creation how to use the exported data).

Never mind, I’m a genius, I figured it out.

print repoPath (probably /tmp/…)
navigate to repoPath and copy the config-lmao file