Documentation ¶
Index ¶
- func ActionContent2Commits(act Actioner) *models.PushCommits
- func ActionIcon(opType int) string
- func DiffLineTypeToStr(diffType int) string
- func DiffTypeToStr(diffType int) string
- func List(l *list.List) chan interface{}
- func NewFuncMap() []template.FuncMap
- func Range(l int) []int
- func RenderCommitMessage(full bool, msg, urlPrefix string, metas map[string]string) template.HTML
- func ReplaceLeft(s, old, new string) string
- func Safe(raw string) template.HTML
- func Sha1(str string) string
- func Str2html(raw string) template.HTML
- func ToUtf8(content string) string
- func ToUtf8WithErr(content []byte) (error, string)
- type Actioner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActionContent2Commits ¶
func ActionContent2Commits(act Actioner) *models.PushCommits
func ActionIcon ¶
ActionIcon accepts a int that represents action operation type and returns a icon class name.
func DiffLineTypeToStr ¶
func DiffTypeToStr ¶
func NewFuncMap ¶ added in v0.9.0
func RenderCommitMessage ¶
RenderCommitMessage renders commit message with XSS-safe and special links.
func ReplaceLeft ¶
Replaces all prefixes 'old' in 's' with 'new'.
func ToUtf8WithErr ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.