Compare commits

..

No commits in common. "bdc93d55962fc35341500bdada1cfcb3d1bbc422" and "098d82075d28307aae5cf6260180bda713dc1751" have entirely different histories.

7 changed files with 7 additions and 15 deletions

2
.gitignore vendored
View File

@ -1,3 +1 @@
*.xml *.xml
/cli
/web

View File

@ -1,5 +0,0 @@
# webweav.ing
Tools for the smallweb
So far this is just an RSS feed generator for right now.

View File

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"os" "os"
"git.32bit.cafe/yequari/webweav.ing/feed" "git.32bit.cafe/yequari/rss-gen/feed"
) )
func main() { func main() {

View File

@ -5,7 +5,7 @@ import (
"net/http" "net/http"
"strings" "strings"
"git.32bit.cafe/yequari/webweav.ing/feed" "git.32bit.cafe/yequari/rss-gen/feed"
) )
func (app *application) home(w http.ResponseWriter, r *http.Request) { func (app *application) home(w http.ResponseWriter, r *http.Request) {

View File

@ -1,4 +1,5 @@
package feed package feed
var ParseArticle = parseArticle
var FetchPage = fetchPage var FetchPage = fetchPage
var ParseTime = parseTime var ParseTime = parseTime

View File

@ -1,10 +1,8 @@
package feed_test package feed_test
import ( import "testing"
"testing" import "time"
"time" import "git.32bit.cafe/yequari/rss-gen/feed"
"git.32bit.cafe/yequari/webweav.ing/feed"
)
func TestArticleParse(t *testing.T) { func TestArticleParse(t *testing.T) {
testDate, err := time.Parse("2006-Jan-02", "2004-May-14") testDate, err := time.Parse("2006-Jan-02", "2004-May-14")

2
go.mod
View File

@ -1,4 +1,4 @@
module git.32bit.cafe/yequari/webweav.ing module git.32bit.cafe/yequari/rss-gen
go 1.20 go 1.20