mmcdole / gofeed

Parse RSS, Atom and JSON feeds in Go
MIT License
2.56k stars 208 forks source link

isPermaLink="false" for guid field #135

Closed bayraktugrul closed 4 years ago

bayraktugrul commented 4 years ago

Expected behavior

<guid isPermaLink="false">article 54 at example.com</guid>

Actual behavior

<guid>http://www.example.com/archives/000054.html</guid>

Steps to reproduce the behavior

By default, the guid element specifies a permanent link for an item, the value must be a full URL. IF you are using the guid element simply as a unique identifier (and not a link to the item), then the value can be whatever you want, but you must include the attribute isPermaLink="false" in the guid tag. Could you add this feature?