diff --git a/LICENSE b/LICENSE index 4832fb0..9bfc1f7 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ BSD 2-Clause License -Copyright (c) 2019, naoki-kishi +Copyright (c) 2019, p1ass All rights reserved. Redistribution and use in source and binary forms, with or without diff --git a/README.md b/README.md index ea68e0e..3026c31 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,12 @@ ### Install ```bash -go get -u github.com/naoki-kishi/feeder +go get -u github.com/p1ass/feeder ``` ### Examples ```go -import "github.com/naoki-kishi/feeder" +import "github.com/p1ass/feeder" func fetch(){ rssCrawler := feeder.NewRSSCrawler("https://example.com/rss") @@ -25,8 +25,8 @@ func fetch(){ Link: &feeder.Link{Href: "https://example.com/feed"}, Description: "My feeds.", Author: &feeder.Author{ - Name: "naoki-kishi", - Email: "naoki-kishi@example.com"}, + Name: "p1ass", + Email: "p1ass@example.com"}, Created: time.Now(), Items: items, } diff --git a/atom_crawler.go b/atom_crawler.go index e83e2fc..c7915ac 100644 --- a/atom_crawler.go +++ b/atom_crawler.go @@ -6,7 +6,7 @@ import ( "net/http" "time" - "github.com/naoki-kishi/feeds" + "github.com/p1ass/feeds" "github.com/pkg/errors" ) diff --git a/atom_crawler_test.go b/atom_crawler_test.go index 92deae5..0325ecc 100644 --- a/atom_crawler_test.go +++ b/atom_crawler_test.go @@ -8,7 +8,7 @@ import ( "time" "github.com/kr/pretty" - "github.com/naoki-kishi/feeder" + "github.com/p1ass/feeder" ) func TestAtomFetch(t *testing.T) { diff --git a/feeder_test.go b/feeder_test.go index 069ffcb..147baaf 100644 --- a/feeder_test.go +++ b/feeder_test.go @@ -1,12 +1,13 @@ package feeder_test import ( - "github.com/kr/pretty" - "github.com/naoki-kishi/feeder" "reflect" "strconv" "testing" "time" + + "github.com/kr/pretty" + "github.com/p1ass/feeder" ) type mockFetcher struct { diff --git a/generator.go b/generator.go index 24e52c1..a1e1ec6 100644 --- a/generator.go +++ b/generator.go @@ -1,6 +1,6 @@ package feeder -import "github.com/naoki-kishi/feeds" +import "github.com/p1ass/feeds" func (f *Feed) ToRSS() (string, error) { return f.convert().ToRss() diff --git a/generator_test.go b/generator_test.go index cc21a1b..13cd1a2 100644 --- a/generator_test.go +++ b/generator_test.go @@ -1,8 +1,9 @@ package feeder_test import ( - "github.com/naoki-kishi/feeder" "testing" + + "github.com/p1ass/feeder" ) func TestItemConvert(t *testing.T) { diff --git a/go.mod b/go.mod index a016711..fbf6afe 100644 --- a/go.mod +++ b/go.mod @@ -1,13 +1,13 @@ -module github.com/naoki-kishi/feeder +module github.com/p1ass/feeder require ( bou.ke/monkey v1.0.1 // indirect github.com/kr/pretty v0.1.0 - github.com/naoki-kishi/feeds v1.1.1 github.com/otiai10/curr v0.0.0-20150429015615-9b4961190c95 // indirect github.com/otiai10/marmoset v0.4.0 // indirect github.com/otiai10/mint v1.2.3 // indirect github.com/otiai10/opengraph v1.0.0 + github.com/p1ass/feeds v1.1.1 github.com/pkg/errors v0.8.1 github.com/stretchr/testify v1.3.0 // indirect golang.org/x/net v0.0.0-20190311183353-d8887717615a // indirect diff --git a/go.sum b/go.sum index ed95070..81fc446 100644 --- a/go.sum +++ b/go.sum @@ -7,8 +7,6 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/naoki-kishi/feeds v1.1.1 h1:Z3T5OysMfAYHScWIcPd/O4a2mHq/Wktn5XPsyEZl3aA= -github.com/naoki-kishi/feeds v1.1.1/go.mod h1:y1xnq4XHPsg1B5xwb2Fr6gY4bHL23wXmrjD2VR9LNQY= github.com/otiai10/curr v0.0.0-20150429015615-9b4961190c95 h1:+OLn68pqasWca0z5ryit9KGfp3sUsW4Lqg32iRMJyzs= github.com/otiai10/curr v0.0.0-20150429015615-9b4961190c95/go.mod h1:9qAhocn7zKJG+0mI8eUu6xqkFDYS2kb2saOteoSB3cE= github.com/otiai10/marmoset v0.4.0 h1:Hg59lQI7qQowBEdsAJ/+VDTEospTBzXX/A1Gsw4mlvA= @@ -17,6 +15,8 @@ github.com/otiai10/mint v1.2.3 h1:PsrRBmrxR68kyNu6YlqYHbNlItc5vOkuS6LBEsNttVA= github.com/otiai10/mint v1.2.3/go.mod h1:YnfyPNhBvnY8bW4SGQHCs/aAFhkgySlMZbrF5U0bOVw= github.com/otiai10/opengraph v1.0.0 h1:Fal0Qx7mBWds0z2cxMMPfZh2Ld3mW61m5BBUTybajD0= github.com/otiai10/opengraph v1.0.0/go.mod h1:X/1XWvVWxb+8migvztlPAclxuxVCIRuLhf0xLnngZ78= +github.com/p1ass/feeds v1.1.1 h1:ah6XlzYVT3RCie+KYeqOgoGvn1IepKYLjI8jzPNeMs8= +github.com/p1ass/feeds v1.1.1/go.mod h1:FV21uIHg0+tWMbO9u0qzQmf1cwF5E+nO/ZkfAu1rCAY= github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= diff --git a/qiita_crawler_test.go b/qiita_crawler_test.go index 57dbc6f..f2adcfc 100644 --- a/qiita_crawler_test.go +++ b/qiita_crawler_test.go @@ -8,7 +8,7 @@ import ( "time" "github.com/kr/pretty" - "github.com/naoki-kishi/feeder" + "github.com/p1ass/feeder" ) func TestQiitaFetch(t *testing.T) { diff --git a/rss_crawler.go b/rss_crawler.go index 9575a3b..07d93fe 100644 --- a/rss_crawler.go +++ b/rss_crawler.go @@ -6,7 +6,7 @@ import ( "net/http" "time" - "github.com/naoki-kishi/feeds" + "github.com/p1ass/feeds" "github.com/pkg/errors" ) diff --git a/rss_crawler_test.go b/rss_crawler_test.go index 2e7a477..c0a56e6 100644 --- a/rss_crawler_test.go +++ b/rss_crawler_test.go @@ -8,7 +8,7 @@ import ( "time" "github.com/kr/pretty" - "github.com/naoki-kishi/feeder" + "github.com/p1ass/feeder" ) func TestRSSFetch(t *testing.T) {