Bladeren bron

Merge branch 'master' of https://github.com/labstack/gommon

Vishal Rana 10 jaren geleden
bovenliggende
commit
deb53821b9
2 gewijzigde bestanden met toevoegingen van 18 en 9 verwijderingen
  1. 2 2
      README.md
  2. 16 7
      color/README.md

+ 2 - 2
README.md

@@ -1,4 +1,4 @@
-# Gommon
-[![GoDoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](http://godoc.org/github.com/labstack/gommon) [![Build Status](http://img.shields.io/travis/fatih/structs.svg?style=flat-square)](https://travis-ci.org/labstack/gommon) [![Coverage Status](http://img.shields.io/coveralls/labstack/gommon.svg?style=flat-square)](https://coveralls.io/r/labstack/gommon)
+# Gommon [![GoDoc](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)](http://godoc.org/github.com/labstack/gommon) [![Build Status](http://img.shields.io/travis/labstack/gommon.svg?style=flat-square)](https://travis-ci.org/labstack/gommon) [![Coverage Status](http://img.shields.io/coveralls/labstack/gommon.svg?style=flat-square)](https://coveralls.io/r/labstack/gommon)
+
 Common packages for Go
 - [Color](https://github.com/labstack/gommon/tree/master/color) - Style terminal text.

+ 16 - 7
color/README.md

@@ -1,13 +1,19 @@
 # Color
+
 Style terminal text.
 
-### Installation
+## Installation
+
 ```go get github.com/labstack/gommon/color```
 
-### Usage
-[labstack/gommon/color](https://github.com/labstack/gommon/blob/master/color/color_test.go)
+## Windows?
+
+Try [cmder](http://bliker.github.io/cmder) or https://github.com/mattn/go-colorable
+
+## [Usage](https://github.com/labstack/gommon/blob/master/color/color_test.go)
+
+### Colored text
 
-#### Colored text
 ```go
 fmt.Println(color.Black("black"))
 fmt.Println(color.Red("red"))
@@ -21,7 +27,8 @@ fmt.Println(color.Grey("grey"))
 ```
 ![Colored Text](http://i.imgur.com/8RtY1QR.png)
 
-#### Colored background
+### Colored background
+
 ```go
 fmt.Println(color.BlackBg("black background", color.Wht))
 fmt.Println(color.RedBg("red background"))
@@ -34,7 +41,8 @@ fmt.Println(color.WhiteBg("white background"))
 ```
 ![Colored Background](http://i.imgur.com/SrrS6lw.png)
 
-#### Emphasis
+### Emphasis
+
 ```go
 fmt.Println(color.Bold("bold"))
 fmt.Println(color.Dim("dim"))
@@ -46,7 +54,8 @@ fmt.Println(color.Strikeout("strikeout"))
 ```
 ![Emphasis](http://i.imgur.com/3RSJBbc.png)
 
-#### Mix and match
+### Mix and match
+
 ```go
 fmt.Println(color.Green("bold green with white background", color.B, color.WhtBg))
 fmt.Println(color.Red("underline red", color.U))