Versions in this module Expand all Collapse all v1 v1.6.1 Mar 26, 2021 Changes in this version type Comment + func (c *Comment) SanitizeAsURL(inp string) string v1.6.0 Apr 25, 2020 v1.5.0 Jan 21, 2020 Changes in this version type Comment + VotedIPs map[string]VotedIPInfo type User + EmailSubscription bool + SiteID string + type VotedIPInfo struct + Timestamp time.Time + Value bool v1.4.0 Jul 26, 2019 Changes in this version type Comment + func (c *Comment) Snippet(limit int) string v1.3.0 Apr 28, 2019 Changes in this version + func EncodeID(id string) string + func HashValue(val string, secret string) string + type BlockedUser struct + ID string + Name string + Until time.Time + type Comment struct + Controversy float64 + Deleted bool + Edit *Edit + ID string + Locator Locator + Orig string + ParentID string + Pin bool + PostTitle string + Score int + Text string + Timestamp time.Time + User User + Vote int + Votes map[string]bool + func (c *Comment) PrepareUntrusted() + func (c *Comment) Sanitize() + func (c *Comment) SetDeleted(mode DeleteMode) + type CommentConverter interface + Convert func(text string) string + type CommentConverterFunc func(text string) string + func (f CommentConverterFunc) Convert(text string) string + type CommentFormatter struct + func NewCommentFormatter(converters ...CommentConverter) *CommentFormatter + func (f *CommentFormatter) Format(c Comment) Comment + func (f *CommentFormatter) FormatText(txt string) (res string) + type DeleteMode int + const HardDelete + const SoftDelete + type Edit struct + Summary string + Timestamp time.Time + type Locator struct + SiteID string + URL string + type PostInfo struct + Count int + FirstTS time.Time + LastTS time.Time + ReadOnly bool + URL string + type User struct + Admin bool + Blocked bool + ID string + IP string + Name string + Picture string + Verified bool + func (u *User) HashIP(secret string) Other modules containing this package github.com/umputun/remark