From 14bce119b60ee6d78a92bfe9361328156d310e57 Mon Sep 17 00:00:00 2001 From: Ahsanul Haque Date: Fri, 12 Dec 2014 08:57:22 +0600 Subject: Commented helpers package --- helpers/pygments.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'helpers/pygments.go') diff --git a/helpers/pygments.go b/helpers/pygments.go index bb7790533..b31c834c6 100644 --- a/helpers/pygments.go +++ b/helpers/pygments.go @@ -25,6 +25,7 @@ import ( const pygmentsBin = "pygmentize" +//HasPygments checks to see if Pygments is installed and available on the system. func HasPygments() bool { if _, err := exec.LookPath(pygmentsBin); err != nil { return false @@ -32,6 +33,7 @@ func HasPygments() bool { return true } +//Highlight takes some code and returns highlighted code. func Highlight(code string, lexer string) string { if !HasPygments() { -- cgit v1.2.3