Skip to content

Commit

Permalink
color: fix golint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fatih committed May 10, 2015
1 parent b8f08a5 commit 1b35f28
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions color.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package color

import (
"fmt"
"io"
"os"
"strconv"
"strings"
Expand All @@ -13,7 +12,7 @@ import (
// NoColor defines if the output is colorized or not. By default it's set to
// false. This is a global option and affects all colors. For more control over
// each color block use the methods DisableColor() individually.
var NoColor bool = false
var NoColor = false

// Color defines a custom color object which is defined by SGR parameters.
type Color struct {
Expand Down Expand Up @@ -122,7 +121,7 @@ func (c *Color) prepend(value Attribute) {

// Output defines the standard output of the print functions. By default
// os.Stdout is used.
var Output io.Writer = ansicolor.NewAnsiColorWriter(os.Stdout)
var Output = ansicolor.NewAnsiColorWriter(os.Stdout)

// Print formats using the default formats for its operands and writes to
// standard output. Spaces are added between operands when neither is a
Expand Down

0 comments on commit 1b35f28

Please sign in to comment.