package
0.0.0-20191223111852-1bc63cf51d79
Repository: https://github.com/opencourseplatform/opencourseplatform-go.git
Documentation: pkg.go.dev

# Functions

AnswerPost parses and inserts the data for a new forum topic answer.
Forum endpoint returns the forum index.
GetForumPosts returns forum topics with all forum posts by the forum topic slug from the database.
GetForumTopicsAndPost returns forums topics with their initial forum post.
InsertNewAnswer inserts a new forum post as an answer to the forum topic associated with the topic by the topic slug into the database.
InsertNewTopic endpoint parses the form data and inserts a new forum topic with an associated post.
InsertNewTopicInDB inserts a new forum topic and the associated forum post into the database.
NewForumTopic returns the HTML page we use to create a forum topic.
PostPage
PostPage endpoint returns a forum topic with all of its posts.

# Structs

FPost contains the data for a single Forum post.
Page is a generic struct for a general HTML page.
Post
Post contains the data to render the HTML page for a single post.
PostPageData contains the data to render the HTML page for the forum index.