Documentation ¶
Index ¶
- func Debug(dryRun bool, format string, a ...interface{})
- func Log(dryRun bool, format string, a ...interface{})
- func PrettyList(stream io.Writer, body []byte) error
- func PrintListMultiline(w *PrefixWriter, title string, values []string)
- func TabbedString(f func(io.Writer) error) (string, error)
- type PrefixWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrettyList ¶
Pretty dumps the given data to the given stream so that it looks pretty. If the data is a valid JSON document then it will be indented before printing it. If the stream is a terminal then the output will also use colors.
func PrintListMultiline ¶
func PrintListMultiline(w *PrefixWriter, title string, values []string)
Types ¶
type PrefixWriter ¶
type PrefixWriter struct {
// contains filtered or unexported fields
}
func NewPrefixWriter ¶
func NewPrefixWriter(out io.Writer, prefix string) *PrefixWriter
func (*PrefixWriter) Flush ¶
func (pw *PrefixWriter) Flush()
func (*PrefixWriter) Write ¶
func (pw *PrefixWriter) Write(p []byte)
func (*PrefixWriter) WriteString ¶
func (pw *PrefixWriter) WriteString(format string, a ...interface{})
Click to show internal directories.
Click to hide internal directories.