nostalgia
This module parses RSS Feeds to help you be more nostalgic.Installation
dagger install github.com/levlaz/daggerverse/nostalgia@v0.1.2
Entrypoint
Return Type
Nostalgia !
Arguments
Name | Type | Description |
---|---|---|
feedUrl | String ! | URL for RSS feed XML |
Example
dagger -m github.com/levlaz/daggerverse/nostalgia@48abe3761551b236b5b077a50b6840ae97d2c684 call \
--feed-url string
func (m *myModule) example(feedUrl string) *Nostalgia {
return dag.
Nostalgia(feedUrl)
}
@function
def example(feed_url: str) -> dag.Nostalgia:
return (
dag.nostalgia(feed_url)
)
@func()
example(feedUrl: string): Nostalgia {
return dag
.nostalgia(feedUrl)
}
Types
Nostalgia 🔗
Nostalgia functions
today() 🔗
Pretty print posts from today over the years
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
checkDate | String ! | "" | ISO 8601 date to check posts for YYYY-MM-DD |
Example
dagger -m github.com/levlaz/daggerverse/nostalgia@48abe3761551b236b5b077a50b6840ae97d2c684 call \
--feed-url string today --check-date string
func (m *myModule) example(ctx context.Context, feedUrl string, checkDate string) string {
return dag.
Nostalgia(feedUrl).
Today(ctx, checkDate)
}
@function
async def example(feed_url: str, check_date: str) -> str:
return await (
dag.nostalgia(feed_url)
.today(check_date)
)
@func()
async example(feedUrl: string, checkDate: string): Promise<string> {
return dag
.nostalgia(feedUrl)
.today(checkDate)
}
stats() 🔗
Pretty Print basic statistics about this feed
Return Type
String !
Example
dagger -m github.com/levlaz/daggerverse/nostalgia@48abe3761551b236b5b077a50b6840ae97d2c684 call \
--feed-url string stats
func (m *myModule) example(ctx context.Context, feedUrl string) string {
return dag.
Nostalgia(feedUrl).
Stats(ctx)
}
@function
async def example(feed_url: str) -> str:
return await (
dag.nostalgia(feed_url)
.stats()
)
@func()
async example(feedUrl: string): Promise<string> {
return dag
.nostalgia(feedUrl)
.stats()
}