Documentation ¶
Index ¶
- Variables
- func DecodeJSON(data []byte) (types.Twt, error)
- func DefaultTwtManager()
- func ExpandMentions(opts types.FmtOpts, lookup types.FeedLookup, text string) string
- func ExpandTag(opts types.FmtOpts, text string) string
- func FormatMentionsAndTagsForSubject(text string) string
- func NewReTwt(twter types.Twter, text string, created time.Time) *reTwt
- func ParseFile(r io.Reader, twter types.Twter) (*retwtFile, error)
- func ParseLine(line string, twter types.Twter) (twt types.Twt, err error)
- func ParseTime(timestr string) (tm time.Time, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidTwtLine = errors.New("error: invalid twt line parsed")
)
Functions ¶
func DefaultTwtManager ¶
func DefaultTwtManager()
func ExpandMentions ¶
ExpandMentions turns "@nick" into "@<nick URL>" if we're following the user or feed or if they exist on the local pod. Also turns @user@domain into @<user URL> as a convenient way to mention users across pods.
func FormatMentionsAndTagsForSubject ¶
FormatMentionsAndTagsForSubject turns `@<nick URL>` into `@nick`
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.