Documentation
¶
Index ¶
Constants ¶
View Source
const SampleAtomXML = `` /* 1199-byte string literal not displayed */
Sample Atom XML for testing feed parsing
View Source
const SampleRSSXML = `` /* 963-byte string literal not displayed */
Sample RSS XML for testing feed parsing
Variables ¶
View Source
var SampleArticles = []database.Article{ { FeedID: 1, Title: "AI Breakthrough in Natural Language Processing", URL: "https://technews.com/ai-breakthrough-2023", Content: "Scientists have achieved a major breakthrough in natural language processing...", Description: "A comprehensive look at the latest AI developments", Author: "Dr. Jane Smith", PublishedAt: time.Date(2023, 1, 1, 14, 30, 0, 0, time.UTC), CreatedAt: time.Date(2023, 1, 1, 15, 0, 0, 0, time.UTC), }, { FeedID: 1, Title: "Quantum Computing Reaches New Milestone", URL: "https://technews.com/quantum-computing-milestone", Content: "Researchers have demonstrated a quantum computer that can...", Description: "Quantum computing advances continue to accelerate", Author: "Prof. John Doe", PublishedAt: time.Date(2023, 1, 2, 9, 15, 0, 0, time.UTC), CreatedAt: time.Date(2023, 1, 2, 9, 30, 0, 0, time.UTC), }, { FeedID: 2, Title: "New Species of Deep-Sea Fish Discovered", URL: "https://sciencedaily.com/new-fish-species-2023", Content: "Marine biologists have discovered a previously unknown species...", Description: "Biodiversity in the deep ocean continues to surprise scientists", Author: "Dr. Sarah Ocean", PublishedAt: time.Date(2023, 1, 2, 11, 45, 0, 0, time.UTC), CreatedAt: time.Date(2023, 1, 2, 12, 0, 0, 0, time.UTC), }, { FeedID: 3, Title: "Best Practices for Go Testing", URL: "https://programming.blog/go-testing-best-practices", Content: "Testing is a crucial part of software development. In this post...", Description: "Learn how to write effective tests in Go", Author: "Alice Developer", PublishedAt: time.Date(2023, 1, 3, 10, 0, 0, 0, time.UTC), CreatedAt: time.Date(2023, 1, 3, 10, 15, 0, 0, time.UTC), }, { FeedID: 3, Title: "Microservices Architecture Patterns", URL: "https://programming.blog/microservices-patterns", Content: "Microservices have become a popular architectural pattern...", Description: "Exploring common patterns in microservices architecture", Author: "Bob Architect", PublishedAt: time.Date(2023, 1, 3, 16, 30, 0, 0, time.UTC), CreatedAt: time.Date(2023, 1, 3, 16, 45, 0, 0, time.UTC), }, }
Sample articles for testing
View Source
var SampleFeeds = []database.Feed{ { Title: "Tech News", URL: "https://technews.com/rss.xml", Description: "Latest technology news and updates", CreatedAt: time.Date(2023, 1, 1, 12, 0, 0, 0, time.UTC), UpdatedAt: time.Date(2023, 1, 1, 12, 0, 0, 0, time.UTC), LastFetch: time.Date(2023, 1, 1, 12, 0, 0, 0, time.UTC), }, { Title: "Science Daily", URL: "https://sciencedaily.com/feed.xml", Description: "Breaking science news and research updates", CreatedAt: time.Date(2023, 1, 2, 10, 0, 0, 0, time.UTC), UpdatedAt: time.Date(2023, 1, 2, 10, 0, 0, 0, time.UTC), LastFetch: time.Date(2023, 1, 2, 10, 0, 0, 0, time.UTC), }, { Title: "Programming Blog", URL: "https://programming.blog/atom.xml", Description: "Programming tutorials and best practices", CreatedAt: time.Date(2023, 1, 3, 9, 0, 0, 0, time.UTC), UpdatedAt: time.Date(2023, 1, 3, 9, 0, 0, 0, time.UTC), LastFetch: time.Date(2023, 1, 3, 9, 0, 0, 0, time.UTC), }, }
Sample feeds for testing
View Source
var SampleUsers = []database.User{ { GoogleID: "google_user_1", Email: "user1@example.com", Name: "Test User 1", Avatar: "https://example.com/avatar1.jpg", CreatedAt: time.Date(2023, 1, 1, 0, 0, 0, 0, time.UTC), }, { GoogleID: "google_user_2", Email: "user2@example.com", Name: "Test User 2", Avatar: "https://example.com/avatar2.jpg", CreatedAt: time.Date(2023, 1, 2, 0, 0, 0, 0, time.UTC), }, { GoogleID: "google_admin", Email: "admin@example.com", Name: "Admin User", Avatar: "https://example.com/admin_avatar.jpg", CreatedAt: time.Date(2023, 1, 1, 0, 0, 0, 0, time.UTC), }, }
Sample users for testing
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.