[vendor] fatih/color: further drop colors altogether
This commit is contained in:
parent
ae7339907d
commit
aaa7dcbe2f
15
vendor/github.com/fatih/color/color.go
generated
vendored
15
vendor/github.com/fatih/color/color.go
generated
vendored
@ -200,10 +200,7 @@ func (c *Color) Fprint(w io.Writer, a ...interface{}) (n int, err error) {
|
|||||||
// string. It returns the number of bytes written and any write error
|
// string. It returns the number of bytes written and any write error
|
||||||
// encountered. This is the standard fmt.Print() method wrapped with the given
|
// encountered. This is the standard fmt.Print() method wrapped with the given
|
||||||
// color.
|
// color.
|
||||||
func (c *Color) Print(a ...interface{}) (n int, err error) {
|
func (*Color) Print(a ...interface{}) (n int, err error) {
|
||||||
c.Set()
|
|
||||||
defer c.unset()
|
|
||||||
|
|
||||||
return fmt.Print(a...)
|
return fmt.Print(a...)
|
||||||
// return fmt.Fprint(Output, a...)
|
// return fmt.Fprint(Output, a...)
|
||||||
}
|
}
|
||||||
@ -222,10 +219,7 @@ func (c *Color) Fprintf(w io.Writer, format string, a ...interface{}) (n int, er
|
|||||||
// Printf formats according to a format specifier and writes to standard output.
|
// Printf formats according to a format specifier and writes to standard output.
|
||||||
// It returns the number of bytes written and any write error encountered.
|
// It returns the number of bytes written and any write error encountered.
|
||||||
// This is the standard fmt.Printf() method wrapped with the given color.
|
// This is the standard fmt.Printf() method wrapped with the given color.
|
||||||
func (c *Color) Printf(format string, a ...interface{}) (n int, err error) {
|
func (*Color) Printf(format string, a ...interface{}) (n int, err error) {
|
||||||
c.Set()
|
|
||||||
defer c.unset()
|
|
||||||
|
|
||||||
return fmt.Printf(format, a...)
|
return fmt.Printf(format, a...)
|
||||||
// return fmt.Fprintf(Output, format, a...)
|
// return fmt.Fprintf(Output, format, a...)
|
||||||
}
|
}
|
||||||
@ -246,10 +240,7 @@ func (c *Color) Fprintln(w io.Writer, a ...interface{}) (n int, err error) {
|
|||||||
// appended. It returns the number of bytes written and any write error
|
// appended. It returns the number of bytes written and any write error
|
||||||
// encountered. This is the standard fmt.Print() method wrapped with the given
|
// encountered. This is the standard fmt.Print() method wrapped with the given
|
||||||
// color.
|
// color.
|
||||||
func (c *Color) Println(a ...interface{}) (n int, err error) {
|
func (*Color) Println(a ...interface{}) (n int, err error) {
|
||||||
c.Set()
|
|
||||||
defer c.unset()
|
|
||||||
|
|
||||||
return fmt.Println(a...)
|
return fmt.Println(a...)
|
||||||
// return fmt.Fprintln(Output, a...)
|
// return fmt.Fprintln(Output, a...)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user