Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/batteredbunny/embedded-writeable
Programs that store data inside of its binary
https://github.com/batteredbunny/embedded-writeable
Last synced: 21 days ago
JSON representation
Programs that store data inside of its binary
- Host: GitHub
- URL: https://github.com/batteredbunny/embedded-writeable
- Owner: BatteredBunny
- Created: 2022-08-03T13:23:17.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-07T11:07:33.000Z (6 months ago)
- Last Synced: 2024-05-07T12:27:51.320Z (6 months ago)
- Language: Go
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# embedded-writeable
Example programs that modify itself while being ran# [Simple binary modification](https://github.com/BatteredBunny/embedded-writeable/tree/master/simple)
[![asciicast](https://asciinema.org/a/YdSUIE0m5ROlu5GnZSRdfBdR2.svg)](https://asciinema.org/a/YdSUIE0m5ROlu5GnZSRdfBdR2)
Simply adds the data at the end of program binary seperated by a signifier# Compiling examples
Both of the below programs save data in the binary by recompiling itself, meaning you need [go installed on your system](https://go.dev/doc/install)
## [Simple compile example](https://github.com/BatteredBunny/embedded-writeable/tree/master/compile/simple)
### Program that shows the last time you opened it
Recompiles itself with new information as the program closes## [Sqlite](https://github.com/BatteredBunny/embedded-writeable/tree/master/compile/sqlite)
### Sqlite database with simple REPL you can play around with
Stores the database in virtual FS and moves it out of that into a temp folder