package
1.9.0-dev
Repository: https://github.com/quantonganh/gitea.git
Documentation: pkg.go.dev

# Functions

ActionContent2Commits converts action content to push commits.
ActionIcon accepts an action operation type and returns an icon class name.
DiffLineTypeToStr returns diff line type name.
DiffTypeToStr returns diff type name.
Escape escapes a HTML string.
HTMLRenderer implements the macaron handler for serving HTML templates.
IsMultilineCommitMessage checks to see if a commit message contains multiple lines.
JSONRenderer implements the macaron handler for serving JSON templates.
JSRenderer implements the macaron handler for serving JS templates.
List traversings the list.
Mailer provides the templates required for sending notification mails.
NewFuncMap returns functions for injecting to templates.
RenderCommitBody extracts the body of a commit message without its title.
RenderCommitMessage renders commit message with XSS-safe and special links.
RenderCommitMessageLink renders commit message as a XXS-safe link to the provided default url, handling for special links.
ReplaceLeft replaces all prefixes 'old' in 's' with 'new'.
Safe render raw as HTML.
SafeJS renders raw as JS.
Sha1 returns sha1 sum of string.
Str2html render Markdown text to HTML.
ToUTF8 converts content to UTF8 encoding and ignore error.
ToUTF8WithErr converts content to UTF8 encoding.
ToUTF8WithFallback detects the encoding of content and coverts to UTF-8 if possible.
TrN returns key to be used for plural text translation.

# Interfaces

Actioner describes an action.