{"modulePath":"github.com/github/hub","version":"v2.11.2+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package ui\n\n## Variables\n\n```go\nvar (\n\tStdout     = colorable.NewColorableStdout()\n\tStderr     = colorable.NewColorableStderr()\n\tDefault UI = Console{Stdout: Stdout, Stderr: Stderr}\n)\n```\n\n## Functions\n\n```go\nfunc Errorf(format string, a ...interface{}) (n int)\n```\n\n```go\nfunc Errorln(a ...interface{}) (n int)\n```\n\n```go\nfunc Expand(format string, values map[string]string, colorize bool) string\n```\nExpand expands a format string using \\`git log\\` message syntax.\n\n```go\nfunc IsTerminal(f *os.File) bool\n```\n\n```go\nfunc Print(a ...interface{}) (n int)\n```\n\n```go\nfunc Printf(format string, a ...interface{}) (n int)\n```\n\n```go\nfunc Println(a ...interface{}) (n int)\n```\n\n## Types\n\n```go\ntype Console struct {\n\tStdout io.Writer\n\tStderr io.Writer\n}\n```\n\n```go\nfunc (c Console) Errorf(format string, a ...interface{}) (n int, err error)\n```\n\n```go\nfunc (c Console) Errorln(a ...interface{}) (n int, err error)\n```\n\n```go\nfunc (c Console) Print(a ...interface{}) (n int, err error)\n```\n\n```go\nfunc (c Console) Printf(format string, a ...interface{}) (n int, err error)\n```\n\n```go\nfunc (c Console) Println(a ...interface{}) (n int, err error)\n```\n\n```go\ntype UI interface {\n\tPrint(a ...interface{}) (n int, err error)\n\tPrintf(format string, a ...interface{}) (n int, err error)\n\tPrintln(a ...interface{}) (n int, err error)\n\tErrorf(format string, a ...interface{}) (n int, err error)\n\tErrorln(a ...interface{}) (n int, err error)\n}\n```\n\n","path":"github.com/github/hub/ui","name":"ui","synopsis":"","isRedistributable":true}
