rename module
This commit is contained in:
parent
098d82075d
commit
bc0178ba1c
|
@ -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() {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
package feed
|
package feed
|
||||||
|
|
||||||
var ParseArticle = parseArticle
|
|
||||||
var FetchPage = fetchPage
|
var FetchPage = fetchPage
|
||||||
var ParseTime = parseTime
|
var ParseTime = parseTime
|
||||||
|
|
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue