Skip to content

Commit

Permalink
use iota identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo-ma committed Jan 4, 2018
1 parent c51bfb5 commit fd7acd8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions color/color.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ import (
)

const (
FgBlack = 0
FgRed = 1
FgGreen = 2
FgYellow = 3
FgBlue = 4
FgPurple = 5
FgBlack = iota
FgRed
FgGreen
FgYellow
FgBlue
FgPurple
)

const (
Regular = 1
Light = 2
Highlight = 3
Underline = 4
Regular = iota + 1
Light
Highlight
Underline
)

func colorString(color int, style int, format string, a ...interface{}) string {
Expand Down

0 comments on commit fd7acd8

Please sign in to comment.