Documentation
¶
Overview ¶
Package feedparse converts raw feed bytes (RSS, Atom, JSON Feed) into ready-to-store model.Entry values. It is a pure-function library with no I/O of its own — fetching is the caller's responsibility.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EntryHash ¶
EntryHash is the dedup key used by store.EntryRepo (unique per feed_id):
sha256( normalize(url) + "\n" + title + "\n" + publishedAtRFC3339 )
normalize(url) lowercases scheme+host but leaves path/query untouched, so that "HTTPS://Example.COM/Post" hashes the same as "https://example.com/Post" while "/Post" and "/POST" stay distinct. If publishedAt is nil, the time component is the empty string.
Types ¶
Click to show internal directories.
Click to hide internal directories.