Documentation
¶
Index ¶
- func ActionContent2Commits(act Actioner) *db.PushCommits
- func ActionIcon(opType int) string
- func DiffFileTypeToStr(typ git.DiffFileType) string
- func DiffLineTypeToStr(typ git.DiffLineType) string
- func EscapePound(str string) string
- func FuncMap() []template.FuncMap
- func NewLine2br(raw string) string
- func RenderCommitMessage(full bool, msg, urlPrefix string, metas map[string]string) string
- func Safe(raw string) template.HTML
- func Sha1(str string) string
- func Str2HTML(raw string) template.HTML
- 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) *db.PushCommits
func ActionIcon ¶
ActionIcon accepts a int that represents action operation type and returns a icon class name.
func DiffFileTypeToStr ¶
func DiffFileTypeToStr(typ git.DiffFileType) string
func DiffLineTypeToStr ¶
func DiffLineTypeToStr(typ git.DiffLineType) string
func RenderCommitMessage ¶
RenderCommitMessage renders commit message with special links.
func ToUTF8WithErr ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.