Compare commits

...

2 Commits

Author SHA1 Message Date
yequari bdc93d5596 update repo info 2024-03-03 14:13:16 -07:00
yequari bc0178ba1c rename module 2024-03-03 14:10:34 -07:00
7 changed files with 15 additions and 7 deletions

2
.gitignore vendored
View File

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

5
README.md Normal file
View File

@ -0,0 +1,5 @@
# 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/rss-gen/feed" "git.32bit.cafe/yequari/webweav.ing/feed"
) )
func main() { func main() {

View File

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

View File

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

View File

@ -1,8 +1,10 @@
package feed_test package feed_test
import "testing" import (
import "time" "testing"
import "git.32bit.cafe/yequari/rss-gen/feed" "time"
"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/rss-gen module git.32bit.cafe/yequari/webweav.ing
go 1.20 go 1.20