From 9b53d04d9db7a05045d777404ef4d3b033eacc20 Mon Sep 17 00:00:00 2001 From: jim teeuwen Date: Thu, 20 Jan 2011 22:48:03 +0100 Subject: [PATCH] Making package easily usable with goinstall. Including the reference to go-iconv. --- xmlx/Makefile => Makefile | 2 +- README | 4 ++-- xmlx/document.go => document.go | 2 +- xmlx/entitymap.go => entitymap.go | 0 makefile | 11 ----------- xmlx/node.go => node.go | 0 xmlx/test.xml => test.xml | 0 xmlx/test1.xml | 1 - xmlx/xmlx_test.go => xmlx_test.go | 0 9 files changed, 4 insertions(+), 16 deletions(-) rename xmlx/Makefile => Makefile (73%) rename xmlx/document.go => document.go (99%) rename xmlx/entitymap.go => entitymap.go (100%) delete mode 100644 makefile rename xmlx/node.go => node.go (100%) rename xmlx/test.xml => test.xml (100%) delete mode 100644 xmlx/test1.xml rename xmlx/xmlx_test.go => xmlx_test.go (100%) diff --git a/xmlx/Makefile b/Makefile similarity index 73% rename from xmlx/Makefile rename to Makefile index 6a9992f..75cb143 100644 --- a/xmlx/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ include $(GOROOT)/src/Make.inc -TARG = xmlx +TARG = github.com/jteeuwen/go-pkg-xmlx GOFILES = document.go node.go entitymap.go include $(GOROOT)/src/Make.pkg diff --git a/README b/README index 443cd0f..ecfeee9 100644 --- a/README +++ b/README @@ -1,5 +1,5 @@ - Author: Jim Teeuwen + Author: Jim Teeuwen This package wraps the standard XML library and uses it to build a node tree of any document you load. This allows you to look up nodes forwards and backwards, @@ -12,7 +12,7 @@ DEPENDENCIES ================================================================================ - go-iconv: https://github.com/sloonz/go-iconv + goinstall github.com/sloonz/go-iconv/src ================================================================================ USAGE diff --git a/xmlx/document.go b/document.go similarity index 99% rename from xmlx/document.go rename to document.go index 1e1959f..de20d5f 100644 --- a/xmlx/document.go +++ b/document.go @@ -33,7 +33,7 @@ import ( "xml" "fmt" "http" - "iconv" + iconv "github.com/sloonz/go-iconv/src" ) type Document struct { diff --git a/xmlx/entitymap.go b/entitymap.go similarity index 100% rename from xmlx/entitymap.go rename to entitymap.go diff --git a/makefile b/makefile deleted file mode 100644 index 2203c26..0000000 --- a/makefile +++ /dev/null @@ -1,11 +0,0 @@ - -all: - make -C xmlx install - -test: - make -C xmlx test - -clean: - make -C xmlx clean - gofmt -w . - diff --git a/xmlx/node.go b/node.go similarity index 100% rename from xmlx/node.go rename to node.go diff --git a/xmlx/test.xml b/test.xml similarity index 100% rename from xmlx/test.xml rename to test.xml diff --git a/xmlx/test1.xml b/xmlx/test1.xml deleted file mode 100644 index 8a70e87..0000000 --- a/xmlx/test1.xml +++ /dev/null @@ -1 +0,0 @@ -WriteTheWebhttp://writetheweb.comNews for web users that write backen-usCopyright 2000, WriteTheWeb team.editor@writetheweb.comwebmaster@writetheweb.comWriteTheWebhttp://writetheweb.com/images/mynetscape88.gifhttp://writetheweb.com8831News for web users that write backGiving the world a pluggable Gnutellahttp://writetheweb.com/read.php?item=24WorldOS is a framework on which to build programs that work like Freenet or Gnutella -allowing distributed applications using peer-to-peer routing.Syndication discussions hot uphttp://writetheweb.com/read.php?item=23After a period of dormancy, the Syndication mailing list has become active again, with contributions from leaders in traditional media and Web syndication.Personal web server integrates file sharing and messaginghttp://writetheweb.com/read.php?item=22The Magi Project is an innovative project to create a combined personal web server and messaging system that enables the sharing and synchronization of information across desktop, laptop and palmtop devices.Syndication and Metadatahttp://writetheweb.com/read.php?item=21RSS is probably the best known metadata format around. RDF is probably one of the least understood. In this essay, published on my O'Reilly Network weblog, I argue that the next generation of RSS should be based on RDF.UK bloggers get organisedhttp://writetheweb.com/read.php?item=20Looks like the weblogs scene is gathering pace beyond the shores of the US. There's now a UK-specific page on weblogs.com, and a mailing list at egroups.Yournamehere.com more important than anythinghttp://writetheweb.com/read.php?item=19Whatever you're publishing on the web, your site name is the most valuable asset you have, according to Carl Steadman. \ No newline at end of file diff --git a/xmlx/xmlx_test.go b/xmlx_test.go similarity index 100% rename from xmlx/xmlx_test.go rename to xmlx_test.go