• Ronny Bangsund's avatar
    First commit. · 9452ff16
    Ronny Bangsund authored
    -Website with form to post a scrap of code
    -Necessary folders are created on startup if they don't exist
    -Index is saved with hash as name, containing the language and expiry timestamp
    -Actual data is saved in "./data/<language>/<hash>" (TODO: make datapath configurable)
    -Scrap struct has save, load, check for expiry and delete funcs
    -Checking for expiry also deletes the two associated files if it has expired
    
    TODO: Get a list of 10 recent posts and display them on the front page
    TODO: Store username with cookies
    TODO: Store username in index files
    TODO: Timers to delete expired files during runtime, instead of relying on startup
    9452ff16
Name
Last commit
Last update
tpl Loading commit data...
logging.go Loading commit data...
main.go Loading commit data...
scrap.go Loading commit data...
scraps.conf Loading commit data...
setup.go Loading commit data...
utility.go Loading commit data...
webpanel.go Loading commit data...