Versions in this module Expand all Collapse all v0 v0.2.0 Mar 31, 2014 Changes in this version + const Byte + const Day + const EByte + const GByte + const Hour + const KByte + const MByte + const Minute + const Month + const PByte + const TByte + const TPL_COMMIT_REPO + const TPL_COMMIT_REPO_LI + const TPL_CREATE_Issue + const TPL_CREATE_REPO + const TimeLimitCodeLength + const Week + const Year + var AppLogo string + var AppName string + var AppUrl string + var AppVer string + var Cache cache.Cache + var CacheAdapter string + var CacheConfig string + var Cfg *goconfig.ConfigFile + var CookieRememberName string + var CookieUserName string + var Domain string + var InstallLock bool + var LogConfig string + var LogInRememberDays int + var LogMode string + var MailService *Mailer + var PictureService string + var RepoRootPath string + var RunUser string + var SecretKey string + var Service struct + var SessionConfig *session.Config + var SessionManager *session.Manager + var SessionProvider string + var TemplateFuncs template.FuncMap = map[string]interface + func ActionDesc(act Actioner) string + func ActionIcon(opType int) string + func AvatarLink(email string) string + func CreateTimeLimitCode(data string, minutes int, startInf interface{}) string + func DateFormat(t time.Time, format string) string + func DateParse(dateString, format string) (time.Time, error) + func DiffLineTypeToStr(diffType int) string + func DiffTypeToStr(diffType int) string + func EncodeMd5(str string) string + func ExecDir() (string, error) + func FileSize(s int64) string + func GetRandomString(n int, alphabets ...byte) string + func IsImageFile(data []byte) (string, bool) + func IsMarkdownFile(name string) bool + func IsReadmeFile(name string) bool + func IsTextFile(data []byte) (string, bool) + func List(l *list.List) chan interface + func NewConfigContext() + func NewServices() + func Range(l int) []int + func RenderMarkdown(rawBytes []byte, urlPrefix string) []byte + func ShortSha(sha1 string) string + func Str2html(raw string) template.HTML + func Subtract(left interface{}, right interface{}) interface + func TimeSince(then time.Time) string + func TimeSincePro(then time.Time) string + func ToStr(value interface{}, args ...int) (s string) + func VerifyTimeLimitCode(data string, minutes int, code string) bool + type Actioner interface + GetActEmail func() string + GetActUserName func() string + GetBranch func() string + GetContent func() string + GetOpType func() int + GetRepoName func() string + type CustomRender struct + func (options *CustomRender) Link(out *bytes.Buffer, link []byte, title []byte, content []byte) + type Mailer struct + Host string + Name string + Passwd string + User string + type PushCommit struct + AuthorEmail string + AuthorName string + Message string + Sha1 string + type PushCommits struct + Commits []*PushCommit + Len int + type StrTo string + func (f StrTo) Exist() bool + func (f StrTo) Int() (int, error) + func (f StrTo) Int64() (int64, error) + func (f StrTo) String() string + type TmplData map[string]interface