aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2013-09-19 11:00:11 +1000
committerAndrew Gerrand <adg@golang.org>2013-09-19 11:00:11 +1000
commit2f455468b9de0f58fa8098177b1806589b537c4b (patch)
tree8c8c20516af1f3d44deb09e9f61c2cee4ab8a13a
parent1b47fc1b7d9ca8e0fcd202fe5f5245a7812e07c4 (diff)
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
-rw-r--r--pkg/atom/atom.go57
1 files changed, 0 insertions, 57 deletions
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"))
-}