{"modulePath":"github.com/codeEmitter/gitrob","version":"v3.2.1-beta+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package common\n\n## Constants\n\n```go\nconst (\n\tName        = \"gitrob\"\n\tVersion     = \"3.2.1-beta\"\n\tASCIIBanner = \"        _ __           __\\n\" +\n\t\t\"  ___ _(_) /________  / /\\n\" +\n\t\t\" / _ `/ / __/ __/ _ \\\\/ _ \\\\\\n\" +\n\t\t\" \\\\_, /_/\\\\__/_/  \\\\___/_.__/\\n\" +\n\t\t\"/___/ by @michenriksen \u0026 @codeEmitter\"\n)\n```\n\n```go\nconst (\n\tFATAL     = 5\n\tERROR     = 4\n\tWARN      = 3\n\tIMPORTANT = 2\n\tINFO      = 1\n\tDEBUG     = 0\n)\n```\n\n```go\nconst (\n\tTargetTypeUser         = \"User\"\n\tTargetTypeOrganization = \"Organization\"\n)\n```\n\n```go\nconst (\n\tEmptyTreeCommitId = \"4b825dc642cb6eb9a060e54bf8d69288fbee4904\"\n)\n```\n\n```go\nconst GitLabTanuki = \"\\n\" +\n\t\"      //               //     \\n\" +\n\t\"     ////             ////    \\n\" +\n\t\"    //////           //////   \\n\" +\n\t\"   ((((((((/////////((((((((  \\n\" +\n\t\"   ((((((((////////(((((((((  \\n\" +\n\t\"  ((((((((((///////(((((((((( \\n\" +\n\t\"     ((((((((/////((((((((    \\n\" +\n\t\"         (((((///(((((        \\n\" +\n\t\"            (((/(((           \\n\" +\n\t\"               *              \\n\" +\n\t\"        GitLab Red Team       \\n\" +\n\t\"\\n\"\n```\n\n## Variables\n\n```go\nvar LogColors = map[int]*color.Color{\n\tFATAL:     color.New(color.FgRed).Add(color.Bold),\n\tERROR:     color.New(color.FgRed),\n\tWARN:      color.New(color.FgYellow),\n\tIMPORTANT: color.New(color.Bold),\n\tDEBUG:     color.New(color.FgCyan).Add(color.Faint),\n}\n```\n\n```go\nvar NewlineRegex = regexp.MustCompile(`\\r?\\n`)\n```\n\n```go\nvar UserAgent = fmt.Sprintf(\"%s v%s\", Name, Version)\n```\n\n## Functions\n\n```go\nfunc CleanUrlSpaces(dirtyStrings ...string) []string\n```\n\n```go\nfunc FileExists(path string) bool\n```\n\n```go\nfunc GetChangeAction(change *object.Change) string\n```\n\n```go\nfunc GetChangeContent(change *object.Change) (result string, contentError error)\n```\n\n```go\nfunc GetChangePath(change *object.Change) string\n```\n\n```go\nfunc GetChanges(commit *object.Commit, repo *git.Repository) (object.Changes, error)\n```\n\n```go\nfunc GetRepositoryHistory(repository *git.Repository) ([]*object.Commit, error)\n```\n\n```go\nfunc Pluralize(count int, singular string, plural string) string\n```\n\n```go\nfunc TruncateString(str string, maxLength int) string\n```\n\n## Types\n\n```go\ntype CloneConfiguration struct {\n\tInMemClone *bool\n\tUrl        *string\n\tUsername   *string\n\tToken      *string\n\tBranch     *string\n\tDepth      *int\n}\n```\n\n```go\ntype IClient interface {\n\tGetUserOrOrganization(login string) (*Owner, error)\n\tGetRepositoriesFromOwner(target Owner) ([]*Repository, error)\n\tGetOrganizationMembers(target Owner) ([]*Owner, error)\n}\n```\n\n```go\ntype Logger struct {\n\tsync.Mutex\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (l *Logger) Debug(format string, args ...interface{})\n```\n\n```go\nfunc (l *Logger) Error(format string, args ...interface{})\n```\n\n```go\nfunc (l *Logger) Fatal(format string, args ...interface{})\n```\n\n```go\nfunc (l *Logger) Important(format string, args ...interface{})\n```\n\n```go\nfunc (l *Logger) Info(format string, args ...interface{})\n```\n\n```go\nfunc (l *Logger) Log(level int, format string, args ...interface{})\n```\n\n```go\nfunc (l *Logger) SetDebug(d bool)\n```\n\n```go\nfunc (l *Logger) SetSilent(s bool)\n```\n\n```go\nfunc (l *Logger) Warn(format string, args ...interface{})\n```\n\n```go\ntype Owner struct {\n\tLogin     *string\n\tID        *int64\n\tType      *string\n\tName      *string\n\tAvatarURL *string\n\tURL       *string\n\tCompany   *string\n\tBlog      *string\n\tLocation  *string\n\tEmail     *string\n\tBio       *string\n}\n```\n\n```go\ntype Repository struct {\n\tOwner         *string\n\tID            *int64\n\tName          *string\n\tFullName      *string\n\tCloneURL      *string\n\tURL           *string\n\tDefaultBranch *string\n\tDescription   *string\n\tHomepage      *string\n}\n```\n\n","path":"github.com/codeEmitter/gitrob/common","name":"common","synopsis":"","isRedistributable":true}
