Making package easily usable with goinstall. Including the reference to go-pkg-xmlx and the build target in the makefile.
This commit is contained in:
parent
31d02da4ae
commit
1a851548db
|
@ -1,6 +1,6 @@
|
||||||
include $(GOROOT)/src/Make.inc
|
include $(GOROOT)/src/Make.inc
|
||||||
|
|
||||||
TARG = feeder
|
TARG = github.com/jteeuwen/go-pkg-rss
|
||||||
GOFILES = feed.go rss.go atom.go channel.go image.go item.go cloud.go \
|
GOFILES = feed.go rss.go atom.go channel.go image.go item.go cloud.go \
|
||||||
enclosure.go source.go input.go category.go generator.go link.go\
|
enclosure.go source.go input.go category.go generator.go link.go\
|
||||||
subtitle.go author.go content.go
|
subtitle.go author.go content.go
|
|
@ -1,7 +1,7 @@
|
||||||
package feeder
|
package feeder
|
||||||
|
|
||||||
import "os"
|
import "os"
|
||||||
import "xmlx"
|
import xmlx "github.com/jteeuwen/go-pkg-xmlx"
|
||||||
|
|
||||||
func (this *Feed) readAtom(doc *xmlx.Document) (err os.Error) {
|
func (this *Feed) readAtom(doc *xmlx.Document) (err os.Error) {
|
||||||
ns := "http://www.w3.org/2005/Atom"
|
ns := "http://www.w3.org/2005/Atom"
|
|
@ -27,7 +27,7 @@ package feeder
|
||||||
|
|
||||||
import "os"
|
import "os"
|
||||||
import "time"
|
import "time"
|
||||||
import "xmlx"
|
import xmlx "github.com/jteeuwen/go-pkg-xmlx"
|
||||||
import "fmt"
|
import "fmt"
|
||||||
import "strconv"
|
import "strconv"
|
||||||
import "strings"
|
import "strings"
|
|
@ -1,7 +1,7 @@
|
||||||
package feeder
|
package feeder
|
||||||
|
|
||||||
import "os"
|
import "os"
|
||||||
import "xmlx"
|
import xmlx "github.com/jteeuwen/go-pkg-xmlx"
|
||||||
|
|
||||||
func (this *Feed) readRss2(doc *xmlx.Document) (err os.Error) {
|
func (this *Feed) readRss2(doc *xmlx.Document) (err os.Error) {
|
||||||
days := make(map[string]int)
|
days := make(map[string]int)
|
Loading…
Reference in New Issue