Implementing a basic plugin architecture shouldn't be a complicated task. The solution described here is working but you still have to import every plugin (inheriting from the base class).
This is my solution:
$ tree
Implementing a basic plugin architecture shouldn't be a complicated task. The solution described here is working but you still have to import every plugin (inheriting from the base class).
This is my solution:
$ tree
package main | |
import ( | |
"flag" | |
"fmt" | |
"html/template" | |
"log" | |
"net/http" | |
"github.com/gorilla/mux" |
module mimind2json | |
go 1.16 | |
require github.com/beevik/etree v1.1.0 |
#!/bin/bash | |
RDRVIEW_OUTPUT=~/work/dropbox/rdrview | |
DROPBOX_DIR="dropbox:Apps/Dropbox PocketBook/articles/2021/" | |
add_link_to_dropbox() { | |
# Create tmp file | |
TEMP_FILE=$(mktemp) | |
# Make link readable |
<?xml version="1.0"?> | |
<opml version="1.0"> | |
<head> | |
<title>Elfeed-Org Export</title> | |
</head> | |
<body> | |
<outline title="elfeed"> | |
<outline title="reddit"> | |
<outline title="inbox" xmlUrl="https://www.reddit.com/message/inbox/.rss?feed=68ab399ca4600a1cfa26b3b49b794299eb01583c&user=cyneox"/> | |
<outline title="listings" xmlUrl="https://www.reddit.com/.rss?feed=68ab399ca4600a1cfa26b3b49b794299eb01583c&user=cyneox"/> |