community

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractMarkdown

func ExtractMarkdown(data []byte) (string, error)

ExtractMarkdown converts an HTML page body to readable markdown text.

func FetchPostContent

func FetchPostContent(postURL string) (string, error)

FetchPostContent fetches a Community blog post URL and returns the body as markdown.

Types

type BlogPost

type BlogPost struct {
	Title     string
	URL       string
	Published time.Time
}

BlogPost is a single SAP Developer News Community blog post.

func FetchBlogPosts

func FetchBlogPosts(rssURL string) ([]BlogPost, error)

FetchBlogPosts fetches the SAP Community RSS feed and returns blog posts.

func ParsePosts

func ParsePosts(data []byte) ([]BlogPost, error)

ParsePosts parses an RSS 2.0 feed and returns the blog posts in feed order.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL