From 2f455468b9de0f58fa8098177b1806589b537c4b Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Thu, 19 Sep 2013 11:00:11 +1000 Subject: go.blog/pkg/atom: remove package It has been moved code.google.com/p/go.tools/godoc/blog/atom. R=golang-dev, dsymonds https://golang.org/cl/13760043 --- pkg/atom/atom.go | 57 -------------------------------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 pkg/atom/atom.go (limited to 'pkg/atom/atom.go') diff --git a/pkg/atom/atom.go b/pkg/atom/atom.go deleted file mode 100644 index bc114dd..0000000 --- a/pkg/atom/atom.go +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2009 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Adapted from encoding/xml/read_test.go. - -// Package atom defines XML data structures for an Atom feed. -package atom - -import ( - "encoding/xml" - "time" -) - -type Feed struct { - XMLName xml.Name `xml:"http://www.w3.org/2005/Atom feed"` - Title string `xml:"title"` - ID string `xml:"id"` - Link []Link `xml:"link"` - Updated TimeStr `xml:"updated"` - Author *Person `xml:"author"` - Entry []*Entry `xml:"entry"` -} - -type Entry struct { - Title string `xml:"title"` - ID string `xml:"id"` - Link []Link `xml:"link"` - Published TimeStr `xml:"published"` - Updated TimeStr `xml:"updated"` - Author *Person `xml:"author"` - Summary *Text `xml:"summary"` - Content *Text `xml:"content"` -} - -type Link struct { - Rel string `xml:"rel,attr"` - Href string `xml:"href,attr"` -} - -type Person struct { - Name string `xml:"name"` - URI string `xml:"uri,omitempty"` - Email string `xml:"email,omitempty"` - InnerXML string `xml:",innerxml"` -} - -type Text struct { - Type string `xml:"type,attr"` - Body string `xml:",chardata"` -} - -type TimeStr string - -func Time(t time.Time) TimeStr { - return TimeStr(t.Format("2006-01-02T15:04:05-07:00")) -} -- cgit v1.2.3